Add FreeBSD build on Cirrus CI

This commit is contained in:
Ryan Mast 2020-02-28 20:53:19 -08:00 committed by Ryan Mast
parent e63a58c5ba
commit 6c806a7145
3 changed files with 23 additions and 0 deletions

4
.ci/unix-build.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

6
.ci/unix-test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
cd build
ctest -E Windows
if [ -f "test/std_filesystem_test" ]; then
test/std_filesystem_test || true
fi

13
.cirrus.yml Normal file
View File

@ -0,0 +1,13 @@
freebsd_instance:
image_family: freebsd-12-1
task:
install_script: |
pkg install -y cmake
pw groupadd testgrp
pw useradd testuser -g testgrp -w none -m
chown -R testuser:testgrp .
build_script: |
sudo -u testuser .ci/unix-build.sh
test_script: |
sudo -u testuser .ci/unix-test.sh