diff options
-rw-r--r-- | .travis.yml | 8 | ||||
-rwxr-xr-x | scripts/travis_before_install.sh | 2 | ||||
-rwxr-xr-x | scripts/travis_script.sh | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index f09282a9c3..4c88e402ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,16 +5,16 @@ matrix: - os: linux include: - os: linux - env: BUILDTYPE=Release + env: BUILDTYPE=Release JOBS=16 compiler: clang - os: linux - env: BUILDTYPE=Debug + env: BUILDTYPE=Debug JOBS=8 compiler: clang - os: linux - env: BUILDTYPE=Release + env: BUILDTYPE=Release JOBS=4 compiler: gcc - os: osx - env: BUILDTYPE=Debug + env: BUILDTYPE=Debug JOBS=4 compiler: clang env: diff --git a/scripts/travis_before_install.sh b/scripts/travis_before_install.sh index cdeb63d972..f67aa270d6 100755 --- a/scripts/travis_before_install.sh +++ b/scripts/travis_before_install.sh @@ -40,7 +40,7 @@ if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then echo $CXXFLAGS echo $CFLAGS echo $LDFLAGS - make -j4 && sudo make install && \ + make -j$JOBS && sudo make install && \ cd ../ mapbox_time "install_opengl" \ diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index 8e2f921638..d301c0efd3 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -8,10 +8,10 @@ if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # build & test Linux # mapbox_time "compile_program" \ - make linux -j$(nproc) BUILDTYPE=${BUILDTYPE} + make linux -j$JOBS BUILDTYPE=${BUILDTYPE} mapbox_time "compile_tests" \ - make test -j$(nproc) BUILDTYPE=${BUILDTYPE} + make test -j$JOBS BUILDTYPE=${BUILDTYPE} mapbox_time "run_tests" \ ./scripts/run_tests.sh @@ -34,7 +34,7 @@ elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then make xproj-cli mapbox_time "build_osx" \ - xcodebuild -project ./build/macosx/mapboxgl-app.xcodeproj -jobs 4 + xcodebuild -project ./build/macosx/mapboxgl-app.xcodeproj -jobs $JOBS # # build iOS @@ -48,5 +48,5 @@ elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then make iproj-cli mapbox_time "build_ios" \ - xcodebuild -project ./build/ios/mapbox-gl-cocoa/app/mapboxgl-app.xcodeproj -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -jobs 4 + xcodebuild -project ./build/ios/mapbox-gl-cocoa/app/mapboxgl-app.xcodeproj -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -jobs $JOBS fi |