summaryrefslogtreecommitdiff
path: root/other/travis
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2016-10-03 01:52:43 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2016-10-05 23:47:39 -0400
commit02e9cd38f107302f4384129ae23e92d250605453 (patch)
tree8d051ce6f9ec4c6c826e0b45604af41d9501e2af /other/travis
parent90123c803abd0cd51c5fff255aa75b3d1b45cd85 (diff)
Add option to build tox-bootstrapd
When cross-compiling to <target> from Linux, cmake might find native Linux libconfig and decide to build tox-bootstrapd. If the target is Windows, this will fail, as tox-bootstrapd can't be built for Windows in the first place. If the target is Linux of some other architecture, then using host native libconfig will fail too. Thus an option is needed to guard against this.
Diffstat (limited to 'other/travis')
-rw-r--r--other/travis/env-linux.sh1
-rw-r--r--other/travis/env-osx.sh1
-rw-r--r--other/travis/env-windows.sh1
-rwxr-xr-xother/travis/toxcore-script3
4 files changed, 5 insertions, 1 deletions
diff --git a/other/travis/env-linux.sh b/other/travis/env-linux.sh
index 2544ee56..16dbb8cc 100644
--- a/other/travis/env-linux.sh
+++ b/other/travis/env-linux.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3CMAKE=cmake 3CMAKE=cmake
4CMAKE_EXTRA_FLAGS=""
4NPROC=`nproc` 5NPROC=`nproc`
5CURDIR=$PWD 6CURDIR=$PWD
6 7
diff --git a/other/travis/env-osx.sh b/other/travis/env-osx.sh
index e45c34a7..86d16ade 100644
--- a/other/travis/env-osx.sh
+++ b/other/travis/env-osx.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3CMAKE=cmake 3CMAKE=cmake
4CMAKE_EXTRA_FLAGS=""
4NPROC=`sysctl -n hw.ncpu` 5NPROC=`sysctl -n hw.ncpu`
5CURDIR=$PWD 6CURDIR=$PWD
6 7
diff --git a/other/travis/env-windows.sh b/other/travis/env-windows.sh
index d7eecada..8c9b9c65 100644
--- a/other/travis/env-windows.sh
+++ b/other/travis/env-windows.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3CMAKE=$ARCH-w64-mingw32.shared-cmake 3CMAKE=$ARCH-w64-mingw32.shared-cmake
4CMAKE_EXTRA_FLAGS="-DBOOTSTRAP_DAEMON=OFF"
4NPROC=`nproc` 5NPROC=`nproc`
5CURDIR=/work 6CURDIR=/work
6 7
diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script
index fe0a35e4..e023ff81 100755
--- a/other/travis/toxcore-script
+++ b/other/travis/toxcore-script
@@ -13,7 +13,8 @@ RUN $CMAKE \
13 -DDEBUG=ON \ 13 -DDEBUG=ON \
14 -DASSOC_DHT=ON \ 14 -DASSOC_DHT=ON \
15 -DSTRICT_ABI=ON \ 15 -DSTRICT_ABI=ON \
16 -DTEST_TIMEOUT_SECONDS=300 #-DASAN=ON 16 -DTEST_TIMEOUT_SECONDS=300 \
17 $CMAKE_EXTRA_FLAGS #-DASAN=ON
17 18
18export CTEST_OUTPUT_ON_FAILURE=1 19export CTEST_OUTPUT_ON_FAILURE=1
19 20