diff --git a/.travis.yml b/.travis.yml index 75f0cf8f7..61b2678a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,19 +21,25 @@ before_install: - sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 - sudo apt-get update -qq - sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev libglew-dev cmake + +before_script: + - export THREADS=`nproc` + - echo "THREADS = $THREADS" + script: + # First a debug build: - mkdir build-debug - cd build-debug - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off - - make VERBOSE=1 -j 32 + - make VERBOSE=1 -j $THREADS # Then a release build: - cd .. - mkdir build-release - cd build-release - cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off - - make VERBOSE=1 -j 32 + - make VERBOSE=1 -j $THREADS notifications: irc: