summaryrefslogtreecommitdiff
path: root/other/travis/env-freebsd.sh
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-03-08 04:10:46 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2017-08-22 04:08:22 -0400
commitf495cf1a8daf2c99d4fbde7202ddccb86a880652 (patch)
tree0fd5176f7aed85417ca7c4a070baaaeeb1084658 /other/travis/env-freebsd.sh
parent6295d28a1ec00d1caa03adce8fac6baf456ca7da (diff)
Test toxcore on FreeBSD on Travis
Diffstat (limited to 'other/travis/env-freebsd.sh')
-rw-r--r--other/travis/env-freebsd.sh28
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
3CMAKE=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.
6CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF"
7NPROC=`nproc`
8CURDIR=/root
9RUN_TESTS=true
10MAKE=gmake
11
12SCREEN_SESSION=freebsd
13SSH_PORT=10022
14
15RUN() {
16 ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p $SSH_PORT "$@"
17}
18
19TESTS() {
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}