Browse Source

Move to 2.2.9 for travisci release

pull/243/head v7.4.0
Rob Spieldenner 10 years ago committed by Adrian Cole
parent
commit
0193e96eb7
  1. 1
      .travis.yml
  2. 2
      build.gradle
  3. 16
      installViaTravis.sh

1
.travis.yml

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
language: java
jdk:
- oraclejdk7
install: ./installViaTravis.sh
script: ./buildViaTravis.sh
env:
global:

2
build.gradle

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
plugins {
id 'nebula.netflixoss' version '2.2.8'
id 'nebula.netflixoss' version '2.2.9'
}
ext {

16
installViaTravis.sh

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
#!/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