Skip to content

Commit

Permalink
fix(travis): Giving max-workers=2 a shot on the release build (#4074)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajordens committed Oct 4, 2019
1 parent 7519155 commit c451f3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gradle/buildViaTravis.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit c451f3e

Please sign in to comment.