Skip to content

Commit 65957f4

Browse files
authored
Merge pull request #51 from nightlark/add-freebsd-ci-build
Add FreeBSD build on Cirrus CI
2 parents 1d85ec3 + 6c806a7 commit 65957f4

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.ci/unix-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
mkdir build && cd build
3+
cmake -DCMAKE_BUILD_TYPE=Release ..
4+
cmake --build .

.ci/unix-test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
cd build
3+
ctest -E Windows
4+
if [ -f "test/std_filesystem_test" ]; then
5+
test/std_filesystem_test || true
6+
fi

.cirrus.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
freebsd_instance:
2+
image_family: freebsd-12-1
3+
4+
task:
5+
install_script: |
6+
pkg install -y cmake
7+
pw groupadd testgrp
8+
pw useradd testuser -g testgrp -w none -m
9+
chown -R testuser:testgrp .
10+
build_script: |
11+
sudo -u testuser .ci/unix-build.sh
12+
test_script: |
13+
sudo -u testuser .ci/unix-test.sh

0 commit comments

Comments
 (0)