From f495cf1a8daf2c99d4fbde7202ddccb86a880652 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Wed, 8 Mar 2017 04:10:46 -0500 Subject: Test toxcore on FreeBSD on Travis --- other/travis/env-freebsd.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 other/travis/env-freebsd.sh (limited to 'other/travis/env-freebsd.sh') 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 @@ +#!/bin/sh + +CMAKE=cmake +# Asan is disabled because it's currently broken in FreeBSD 11. +# We should try enabling it in the next FreeBSD release and see if it works. +CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF" +NPROC=`nproc` +CURDIR=/root +RUN_TESTS=true +MAKE=gmake + +SCREEN_SESSION=freebsd +SSH_PORT=10022 + +RUN() { + ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p $SSH_PORT "$@" +} + +TESTS() { + COUNT="$1"; shift + RUN "$@" || { + if [ $COUNT -gt 1 ]; then + TESTS `expr $COUNT - 1` "$@" + else + false + fi + } +} -- cgit v1.2.3