Browse Source

Remove unnecessary install step in Travis

pull/407/head
Jon Schneider 9 years ago
parent
commit
5d06369197
  1. 2
      .travis.yml
  2. 16
      installViaTravis.sh

2
.travis.yml

@ -9,7 +9,7 @@ notifications: @@ -9,7 +9,7 @@ notifications:
on_start: false
jdk:
- oraclejdk8
install: ./installViaTravis.sh
install: true
script: ./buildViaTravis.sh
cache:
directories:

16
installViaTravis.sh

@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
#!/bin/bash
# This script will build the project.
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Assemble Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew assemble
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Assemble Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true 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 assemble
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
./gradlew assemble
fi
Loading…
Cancel
Save