diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2017-03-08 04:10:46 -0500 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2017-08-22 04:08:22 -0400 |
commit | f495cf1a8daf2c99d4fbde7202ddccb86a880652 (patch) | |
tree | 0fd5176f7aed85417ca7c4a070baaaeeb1084658 /other/travis/env-freebsd.sh | |
parent | 6295d28a1ec00d1caa03adce8fac6baf456ca7da (diff) |
Test toxcore on FreeBSD on Travis
Diffstat (limited to 'other/travis/env-freebsd.sh')
-rw-r--r-- | other/travis/env-freebsd.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/other/travis/env-freebsd.sh b/other/travis/env-freebsd.sh new file mode 100644 index 00000000..2c391649 --- /dev/null +++ b/other/travis/env-freebsd.sh | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | CMAKE=cmake | ||
4 | # Asan is disabled because it's currently broken in FreeBSD 11. | ||
5 | # We should try enabling it in the next FreeBSD release and see if it works. | ||
6 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF" | ||
7 | NPROC=`nproc` | ||
8 | CURDIR=/root | ||
9 | RUN_TESTS=true | ||
10 | MAKE=gmake | ||
11 | |||
12 | SCREEN_SESSION=freebsd | ||
13 | SSH_PORT=10022 | ||
14 | |||
15 | RUN() { | ||
16 | ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p $SSH_PORT "$@" | ||
17 | } | ||
18 | |||
19 | TESTS() { | ||
20 | COUNT="$1"; shift | ||
21 | RUN "$@" || { | ||
22 | if [ $COUNT -gt 1 ]; then | ||
23 | TESTS `expr $COUNT - 1` "$@" | ||
24 | else | ||
25 | false | ||
26 | fi | ||
27 | } | ||
28 | } | ||