Skip to content

Commit e6593c5

Browse files
domdomeggmaskaravivek
authored andcommitted
Travis should only sign and build APK on master branch (#2162)
1 parent db38174 commit e6593c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ before_script:
2929
- android-wait-for-emulator
3030
script:
3131
- "./gradlew clean check connectedCheck jacocoTestReport"
32-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
32+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && ["$TRAVIS_BRANCH" == "master" ]; then
3333
./gradlew publishProdReleaseApk;
3434
fi
3535
after_success:
@@ -47,9 +47,9 @@ cache:
4747
- "$HOME/.gradle/caches/"
4848
- "$HOME/.gradle/wrapper/"
4949
before_install:
50-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
50+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && ["$TRAVIS_BRANCH" == "master" ]; then
5151
openssl aes-256-cbc -K $encrypted_7b5c925cc32c_key -iv $encrypted_7b5c925cc32c_iv -in nr-commons.keystore.enc -out nr-commons.keystore -d;
5252
fi
53-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
53+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && ["$TRAVIS_BRANCH" == "master" ]; then
5454
openssl aes-256-cbc -K $encrypted_38ac1a5053f6_key -iv $encrypted_38ac1a5053f6_iv -in play.p12.enc -out play.p12 -d;
5555
fi

0 commit comments

Comments
 (0)