Skip to content

Commit a139347

Browse files
committed
Move to 2.2.9 for travisci release
1 parent 8dd999e commit a139347

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: java
22
jdk:
33
- oraclejdk7
4+
install: ./installViaTravis.sh
45
script: ./buildViaTravis.sh
56
env:
67
global:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nebula.netflixoss' version '2.2.8'
2+
id 'nebula.netflixoss' version '2.2.9'
33
}
44

55
ext {

installViaTravis.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# This script will build the project.
3+
4+
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
5+
echo -e "Assemble Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
6+
./gradlew assemble
7+
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
8+
echo -e 'Assemble Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
9+
./gradlew -Prelease.travisci=true assemble
10+
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
11+
echo -e 'Assemble Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
12+
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true assemble
13+
else
14+
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
15+
./gradlew assemble
16+
fi

0 commit comments

Comments
 (0)