aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2021-05-17 20:37:33 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-19 00:49:21 +0200
commit74b1ad5ffd7badfc843d5f0451dfabecf1559a18 (patch)
tree4b657ee81e8f250b7dc17294ad7103629e89b6f9
parentnetns: use `exit 0` for early exit (diff)
downloadwireguard-freebsd-74b1ad5ffd7badfc843d5f0451dfabecf1559a18.tar.xz
wireguard-freebsd-74b1ad5ffd7badfc843d5f0451dfabecf1559a18.zip
ci: add a Cirrus-CI config file to build + smoke test
Fetch src tarball corresponding to the release (TODO: support snapshots too), build and load WireGuard module, and run netns test script. Signed-off-by: Ed Maste <emaste@FreeBSD.org>
-rw-r--r--.cirrus.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644
index 0000000..0d0036c
--- /dev/null
+++ b/.cirrus.yml
@@ -0,0 +1,25 @@
+freebsd_task:
+ timeout_in: 120m
+ install_script:
+ - ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y bash iperf3 wireguard-tools
+ script:
+ - fetch https://download.freebsd.org/ftp/releases/$(uname -m)/$(uname -r)/src.txz
+ - tar -C / -x -f src.txz
+ build_script:
+ - make -j $(sysctl -n hw.ncpu) -C src
+ test_script:
+ - kldload src/if_wg.ko
+ - tests/netns.sh
+ matrix:
+ # bash fails on 11 and 12 with undefined symbols (e.g.
+ # "rl_executing_keyseq" referenced from COPY relocation in
+ # /usr/local/bin/bash) so skip for now.
+ #- name: freebsd11-amd64
+ # freebsd_instance:
+ # image: freebsd-11-2-release-amd64
+ #- name: freebsd12-amd64
+ # freebsd_instance:
+ # image: freebsd-12-0-release-amd64
+ - name: freebsd13-amd64
+ freebsd_instance:
+ image: freebsd-13-0-release-amd64