Skip to content

Commit

Permalink
Merge pull request #51 from nightlark/add-freebsd-ci-build
Browse files Browse the repository at this point in the history
Add FreeBSD build on Cirrus CI
  • Loading branch information
gulrak committed Mar 4, 2020
2 parents 1d85ec3 + 6c806a7 commit 65957f4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/unix-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
6 changes: 6 additions & 0 deletions .ci/unix-test.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65957f4

Please sign in to comment.