-
Notifications
You must be signed in to change notification settings - Fork 109
/
.cirrus.yml
38 lines (38 loc) · 1.12 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# https://cirrus-ci.com/github/burghardt/easy-wg-quick
test_task:
name: FreeBSD test run
freebsd_instance:
matrix:
image_family: freebsd-15-0-snap
image_family: freebsd-14-1
image_family: freebsd-13-4
env:
CIRRUS_CLONE_DEPTH: 10
pkginstall_script:
- pkg install -y net/wireguard-tools graphics/libqrencode
- pkg install -y shells/bash devel/bats-core
kldload_if_wg_script:
- kldload if_wg || true
unittests_script:
- cd tests && ./runtests.bash
configure_script:
- echo none > fwtype.txt
first_test_run_script:
- ./easy-wg-quick
second_test_run_script:
- ./easy-wg-quick named_client
dump_configuration_script:
- head *.txt *.key *.conf
dump_hub_configuration_script:
- cat wghub.conf
check_for_empty_files_script:
- ls *.txt *.key *.conf | xargs -tn1 test -s
wg-quick_install_script:
- ./easy-wg-quick --install-wg-quick
setup_wireguard_interface_script:
- /usr/local/sbin/wg-quick up ./wghub.conf
check_interface_script:
- ifconfig wghub
- wg show
teardown_wireguard_interface_script:
- /usr/local/sbin/wg-quick down ./wghub.conf