Skip to content

Commit

Permalink
chore(builds): Forgot installViaTravis script (spinnaker#2486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Tomsu authored and clanesf committed Dec 8, 2018
1 parent 429961e commit bf9fd21
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gradle/installViaTravis.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#!/bin/bash
# This script will build the project.

GRADLE="./gradlew -I gradle/init-publish.gradle"

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Assemble Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew -Pskip.loadtest=true assemble
$GRADLE -Pskip.loadtest=true assemble
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Assemble Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true -Pskip.loadtest=true -x test assemble
$GRADLE -Prelease.travisci=true -Pskip.loadtest=true -x test assemble
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Assemble Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -Pskip.loadtest=true -x test assemble
$GRADLE -Prelease.travisci=true -Prelease.useLastTag=true -Pskip.loadtest=true -x test assemble
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
./gradlew -Pskip.loadtest=true assemble
$GRADLE -Pskip.loadtest=true assemble
fi

0 comments on commit bf9fd21

Please sign in to comment.