Skip to content

Commit

Permalink
Skip tests on travis for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Aug 7, 2016
1 parent 6e8795b commit 7ae2c7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gradle/buildViaTravis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ GRADLE_VERSION=$(./gradlew -version | grep Gradle | cut -d ' ' -f 2)

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew build $SWITCHES
./gradlew build $SWITCHES -x test
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true snapshot $SWITCHES
./gradlew -Prelease.travisci=true snapshot $SWITCHES -x test
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
case "$TRAVIS_TAG" in
*-rc\.*)
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true candidate $SWITCHES
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true candidate $SWITCHES -x test
;;
*)
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true final $SWITCHES
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true final $SWITCHES -x test
;;
esac
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
./gradlew build $SWITCHES
./gradlew build $SWITCHES -x test
fi

EXIT=$?
Expand Down

0 comments on commit 7ae2c7c

Please sign in to comment.