diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2016-10-03 01:52:43 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2016-10-05 23:47:39 -0400 |
commit | 02e9cd38f107302f4384129ae23e92d250605453 (patch) | |
tree | 8d051ce6f9ec4c6c826e0b45604af41d9501e2af /other/travis | |
parent | 90123c803abd0cd51c5fff255aa75b3d1b45cd85 (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.sh | 1 | ||||
-rw-r--r-- | other/travis/env-osx.sh | 1 | ||||
-rw-r--r-- | other/travis/env-windows.sh | 1 | ||||
-rwxr-xr-x | other/travis/toxcore-script | 3 |
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 | ||
3 | CMAKE=cmake | 3 | CMAKE=cmake |
4 | CMAKE_EXTRA_FLAGS="" | ||
4 | NPROC=`nproc` | 5 | NPROC=`nproc` |
5 | CURDIR=$PWD | 6 | CURDIR=$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 | ||
3 | CMAKE=cmake | 3 | CMAKE=cmake |
4 | CMAKE_EXTRA_FLAGS="" | ||
4 | NPROC=`sysctl -n hw.ncpu` | 5 | NPROC=`sysctl -n hw.ncpu` |
5 | CURDIR=$PWD | 6 | CURDIR=$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 | ||
3 | CMAKE=$ARCH-w64-mingw32.shared-cmake | 3 | CMAKE=$ARCH-w64-mingw32.shared-cmake |
4 | CMAKE_EXTRA_FLAGS="-DBOOTSTRAP_DAEMON=OFF" | ||
4 | NPROC=`nproc` | 5 | NPROC=`nproc` |
5 | CURDIR=/work | 6 | CURDIR=/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 | ||
18 | export CTEST_OUTPUT_ON_FAILURE=1 | 19 | export CTEST_OUTPUT_ON_FAILURE=1 |
19 | 20 | ||