Skip to content

Commit

Permalink
Used leyyins code to dynamically adjust number of threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Nov 8, 2015
1 parent ce219f2 commit a6ea57d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a6ea57d

Please sign in to comment.