File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ script:
21
21
- echo "Travis branch is $TRAVIS_BRANCH"
22
22
- echo "Travis branch is in pull request? $TRAVIS_PULL_REQUEST"
23
23
- echo "Travis tag $TRAVIS_TAG"
24
+ - echo -e "signing.keyId=${signing_keyId}" >> "gradle.properties"
25
+ - echo -e "signing.password=${signing_password}" >> "gradle.properties"
26
+ - echo -e "signing.secretKeyRingFile=../maven.keystore.gpg" >> "gradle.properties"
24
27
- gradle clean assemble test uploadArchives --continue
25
28
26
29
install :
Original file line number Diff line number Diff line change @@ -52,13 +52,6 @@ android {
52
52
release {
53
53
minifyEnabled false
54
54
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
55
-
56
- // Update the signing information with the secure keys stored in Travis
57
- if (System . getenv(' signing_keyId' ) && System . getenv(' signing_password' )) {
58
- ext. " signing.keyId" = System . getenv(' signing_keyId' )
59
- ext. " signing.password" = System . getenv(' signing_password' )
60
- ext. " signing.secretKeyRingFile" = " ./maven.keystore.gpg"
61
- }
62
55
}
63
56
}
64
57
}
Original file line number Diff line number Diff line change @@ -31,7 +31,20 @@ def getRepositoryPassword() {
31
31
return System . getenv(' sonatype_pass' ) ?: hasProperty(' sonatype_pass' ) ? sonatype_pass : " "
32
32
}
33
33
34
+ String getBranchName () {
35
+ return System . getenv(' TRAVIS_BRANCH' )
36
+ }
37
+
34
38
afterEvaluate { project ->
39
+
40
+ println " Is Tag ${ isTag()} "
41
+ println " Branch ${ getBranchName()} "
42
+ println " Is Release ${ isReleaseBuild()} "
43
+ println " Is Travis ${ isTravis()} "
44
+ println " Has Username ${ !getRepositoryUsername().empty} "
45
+ println " Has Password ${ !getRepositoryPassword().empty} "
46
+ println " Determined Version ${ version} "
47
+
35
48
uploadArchives {
36
49
repositories {
37
50
mavenDeployer {
You can’t perform that action at this time.
0 commit comments