From 6c806a7145b461eaca685decb67cad0e5ff1bf4b Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Fri, 28 Feb 2020 20:53:19 -0800 Subject: [PATCH] Add FreeBSD build on Cirrus CI --- .ci/unix-build.sh | 4 ++++ .ci/unix-test.sh | 6 ++++++ .cirrus.yml | 13 +++++++++++++ 3 files changed, 23 insertions(+) create mode 100755 .ci/unix-build.sh create mode 100755 .ci/unix-test.sh create mode 100644 .cirrus.yml diff --git a/.ci/unix-build.sh b/.ci/unix-build.sh new file mode 100755 index 0000000..914befa --- /dev/null +++ b/.ci/unix-build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +mkdir build && cd build +cmake -DCMAKE_BUILD_TYPE=Release .. +cmake --build . diff --git a/.ci/unix-test.sh b/.ci/unix-test.sh new file mode 100755 index 0000000..3d6c865 --- /dev/null +++ b/.ci/unix-test.sh @@ -0,0 +1,6 @@ +#!/bin/sh +cd build +ctest -E Windows +if [ -f "test/std_filesystem_test" ]; then + test/std_filesystem_test || true +fi diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..6e4cd62 --- /dev/null +++ b/.cirrus.yml @@ -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