summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2019-12-13 14:21:11 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2019-12-13 14:21:11 +0100
commit609e49d7333b217f4f1142aaaabc2a2e9efbcb44 (patch)
treea6f989f44d2720173fa1588301573f55d04daeee /.travis.yml
parent560815e5161a4050f90fd5b77a743b00efd14f2a (diff)
.travis.yml: Use 4 threads on OSX
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 1d8e424a80..3692647158 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -89,7 +89,10 @@ jobs:
- export QTDIR="$(find /usr/local/Cellar/qt -d 1 | tail -n 1)"
- echo "QTDIR=$QTDIR"
install:
- - scons -j "$(sysctl -n hw.ncpu)"
+ # We are hardcoding 4 threads here since "$(sysctl -n hw.ncpu)" only
+ # returns 2 and makes the travis job run into a timeout:
+ # https://docs.travis-ci.com/user/reference/overview/#virtualization-environments
+ - scons -j4
script:
# lldb doesn't provide an easy way to exit 1 on error:
# https://bugs.llvm.org/show_bug.cgi?id=27326
@@ -116,8 +119,8 @@ jobs:
env: >-
CMAKEFLAGS_EXTRA="-DLOCALECOMPARE=OFF -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5/"
DISPLAY=:99.0
+ CMAKE_BUILD_PARALLEL_LEVEL=4
before_install:
- - export CMAKE_BUILD_PARALLEL_LEVEL="$(sysctl -n hw.ncpu)"
- brew install ccache
- export PATH="/usr/local/opt/ccache/bin:$PATH"
- cmake --version