File tree Expand file tree Collapse file tree 2 files changed +32
-5
lines changed Expand file tree Collapse file tree 2 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,31 @@ language: android
2
2
3
3
jdk :
4
4
- oraclejdk7
5
- - oraclejdk8
6
5
7
6
android :
8
7
components :
9
8
- android-22
10
9
- build-tools-22.0.1
11
10
12
- script : ./gradlew build
11
+ # as per http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
12
+ sudo : false
13
+
14
+ # script for build and release via Travis to Bintray
15
+ script : gradle/buildViaTravis.sh
13
16
14
17
notifications :
15
18
email : false
16
19
17
- sudo : false
18
-
20
+ # cache between builds
19
21
cache :
20
22
directories :
21
- - $HOME/.gradle
23
+ - $HOME/.m2
24
+ - $HOME/.gradle
25
+
26
+ # credential for release
27
+ env :
28
+ global :
29
+ - secure : mQwFIdOIooeZ1KkDhkhXdSORA3Tn713C7SYYaF/ZWhhhINHvwMjPAOT+R7zSyGGqjhpqklRbKmZXDJHGPdus1q5CvZLYvldeQXsEfzvav95aukHjNbOIa3y/5h1rZWXwTLR13aMv/o87SrTT2xiyE6XgxFxN3eSsu/zavrQGQkM=
30
+ - secure : hKrGR9YZ2At9vktZRhmkwPK82u8wDHgHPWoxbIE629/oY7WbbRvsmVnXp5ontLd4RJJwnN1ujf2hlr/H7ZioUoIbln0qqX3e399IWLg5OhUdTJVpeAVCenVoNa53p/YCMeo/aE9JWK1oM4AXvIBt8vgZUpCPTfVgsbzF2BACfoY=
31
+ - secure : GJc0t6x9GdPO2EfMTCQP+UU1P9nvxsGkbrtvaNWocHP5BU/X3pcC1CEN6iiXsaYUrhYngOw7jMi3uPgKA8c+FRbnyqhkNubWY0WkChK4vrymjIkTPDMbLELVJoYLsJFZXY8+8wJLJa3D11ShcHAC3K68KGVBVlRqBBv2UidtFjY=
32
+ - secure : lC5Z9+kBmU3MWhmdjIJqQ8vS5QnTm7vepzDRAJH0K3apwaAUx/iZwrLa8XveA05XBim4jga+VHMHAVILilacvxK8T1L01JkYhhMC8ii3ye/HP5Pwy66dPdvl8VaS0vnC3DkB1i7JGv5h0Vx8RcWyJ77qpLjUFsW6db7/3x8pKpo=
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 " Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH ]"
6
+ ./gradlew -Prelease.useLastTag=true 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 --stacktrace
10
+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ]; then
11
+ echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
12
+ ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " final --stacktrace
13
+ else
14
+ echo -e ' WARN: Should not be here => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ] Pull Request [' $TRAVIS_PULL_REQUEST ' ]'
15
+ ./gradlew -Prelease.useLastTag=true build
16
+ fi
You can’t perform that action at this time.
0 commit comments