From 09f3e9bd81789277942325fca287139bcb5f24e2 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Sun, 7 Jan 2018 20:48:17 +0100 Subject: [PATCH] travis: Limit ninja jobs This is needed because Ninja sees too many CPUs in Travis' container, and therefore spawns a lot of jobs which leads Travis to occasionally kill a ninja process. Limiting the jobs protects against that behavior. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4c12dba..ba3ec46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,9 +27,9 @@ before_script: - export PATH=$PATH:$PWD/.ntmp script: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then meson build && ninja -C build; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ninja -C build test -v; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) meson build && ninja -C build test; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then meson build && ninja -j8 -C build; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ninja -j8 -C build test -v; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) meson build && ninja -j8 -C build test; fi - dub build - dub test --build=unittest-cov after_success: