File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ language : java
2+ jdk : oraclejdk8
3+ install : " ./installViaTravis.sh"
4+ script : " ./buildViaTravis.sh"
5+ cache :
6+ directories :
7+ - " $HOME/.gradle/caches/"
8+ - " $HOME/.gradle/wrapper/"
9+ env :
10+ global :
11+ - secure : A1ZGdyklE1FniXYhbN+mIljE9xpHRpg7Yz2uvL+1bojvlRm9omhCmnODO/aPF7S2SMOoDLEcCZSpmbXOLw+Io8asa3Miy0QyIurCp6kBg5Lkls+2UGGbzqkaFHzKXm12DWxbwqo5k+JRSGrR9X8+pzvyzK/nMunw/h39Vfoy8hc=
12+ - secure : asAGLJNdvHvEsytezyjXzJWbKgSVYhC2EH11dbSr2VmxCV3gsaOi0u2jyV1wrnwq+VMDg/GvgqDDE452q8WvcKtUpgxPmujlbskSFhVXj692zHI/x4ZF302f9z/b6Ps57+bnF5s3Hl6wPAtOXm4Y+OwzFr+Ysytev+LXY+BX7QM=
13+ - secure : QP5vDaIltt5pNz26SCH3n9n55YEuYPcpMLrolHtw9FeuVuvHnKe9QiKNGTREQFf22gZW6cCLCHrBlUS9L6aK2B9pNuu4l3nocjlIJEZ4nBioKtJCJ8s7nTNW5C8ANGDk6qfemjR0ILVGWJWdI+z/fiInVdDX9HYx3mCArhd/h8E=
14+ - secure : tnnrvJpI2wUcB1LEoNpS3V3ZypqGKgZtl9uN1xpqOL1coviTMwaqFamuxDP1rkH+xb4t5qTsMazQTgM8ZvurZhXDPIXae/D1Go4Xst90ECq+OTif47FG6q4wgfeLVM4V1H8FjuPzaZdSolapLEAIz+FUx/FOZE3yHTDFhbR0Ct0=
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" ] || [ " $GRADLE_PUBLISH " == " false" ]; then
5+ echo -e " Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH ]"
6+ ./gradlew build
7+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " == " " ]; then
8+ echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
9+ ./gradlew -Prelease.travisci=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build snapshot
10+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ]; then
11+ echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
12+ case " $TRAVIS_TAG " in
13+ * -rc\. * )
14+ ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " candidate
15+ ;;
16+ * )
17+ ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " final
18+ ;;
19+ esac
20+ else
21+ echo -e ' WARN: Should not be here => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ] Pull Request [' $TRAVIS_PULL_REQUEST ' ]'
22+ ./gradlew build
23+ fi
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