Used leyyins code to dynamically adjust number of threads.
This commit is contained in:
parent
ce219f2fd4
commit
a6ea57d09a
10
.travis.yml
10
.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:
|
||||
|
Loading…
Reference in New Issue
Block a user