From 74b1ad5ffd7badfc843d5f0451dfabecf1559a18 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 17 May 2021 20:37:33 -0400 Subject: 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 --- .cirrus.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .cirrus.yml (limited to '.cirrus.yml') 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 -- cgit v1.2.3-59-g8ed1b