File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : java
22jdk :
33- oraclejdk7
4+ install : ./installViaTravis.sh
45script : ./buildViaTravis.sh
56env :
67 global :
Original file line number Diff line number Diff line change 11plugins {
2- id ' nebula.netflixoss' version ' 2.2.8 '
2+ id ' nebula.netflixoss' version ' 2.2.9 '
33}
44
55ext {
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments