From c451f3ed1ef6998c247e687b0c4ccd60305671cd Mon Sep 17 00:00:00 2001 From: Adam Jordens Date: Thu, 3 Oct 2019 21:36:27 -0700 Subject: [PATCH] fix(travis): Giving max-workers=2 a shot on the release build (#4074) --- gradle/buildViaTravis.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle/buildViaTravis.sh b/gradle/buildViaTravis.sh index 873e03f5119..3204ca4fd07 100755 --- a/gradle/buildViaTravis.sh +++ b/gradle/buildViaTravis.sh @@ -1,7 +1,8 @@ #!/bin/bash # This script will build the project. -GRADLE="./gradlew -PenablePublishing=true --no-daemon --max-workers=1" +GRADLE_1="./gradlew -PenablePublishing=true --no-daemon --max-workers=1" +GRADLE_2="./gradlew -PenablePublishing=true --no-daemon --max-workers=2" export GRADLE_OPTS="-Xmx1g -Xms1g" if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then @@ -19,7 +20,7 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then $GRADLE -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -x test -x check candidate --stacktrace ;; *) - $GRADLE -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -x test -x check -x javadoc -x publishBuildDeb final --stacktrace + $GRADLE_2 -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -x test -x check -x javadoc -x publishBuildDeb final --stacktrace ;; esac else