From 9baf192416aeece77aa90050041573c0e8f62dc2 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Mon, 5 Mar 2018 11:56:58 -0600 Subject: [PATCH] If Travis CI gives us multiple CPUs, we may as well use them I believe Travis CI jobs get two CPUs by default. Doing parallel builds regularly is also a good way to help us discover any build race conditions we may have. There's no guarantee that any such races will be revealed, but even exposing them nondeterministically is better than having no possibility of exposing them at all. --- travis/install-gradle | 2 +- travis/script-gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/travis/install-gradle b/travis/install-gradle index 163901c61..ac73a808c 100644 --- a/travis/install-gradle +++ b/travis/install-gradle @@ -1,3 +1,3 @@ # -*- mode: sh; sh-shell: sh -*- -./gradlew --continue assemble +./gradlew --continue --parallel assemble diff --git a/travis/script-gradle b/travis/script-gradle index 1a74967bc..a382f2a59 100644 --- a/travis/script-gradle +++ b/travis/script-gradle @@ -5,4 +5,4 @@ case "$TRAVIS_OS_NAME" in (osx) headless='' ;; esac -$headless ./gradlew --continue build javadoc lintGradle +$headless ./gradlew --continue --parallel build javadoc lintGradle