travis-ci: only deploy from Travis-CI
This commit is contained in:
parent
b205e01a72
commit
9b571a5a58
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
|
## Only deploy from Travis-CI. Some CIs, like Shippable, lie by setting TRAVIS=true.
|
||||||
|
## Currently, Shippable, does not set TRAVIS_LANGUAGE, but Travis-CI does.
|
||||||
|
if [ "$TRAVIS_LANGUAGE" = "java" ] && [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
|
||||||
openssl aes-256-cbc -K $encrypted_efec3258f55d_key -iv $encrypted_efec3258f55d_iv \
|
openssl aes-256-cbc -K $encrypted_efec3258f55d_key -iv $encrypted_efec3258f55d_iv \
|
||||||
-in travis-ci/codesigning.asc.enc -out travis-ci/codesigning.asc -d
|
-in travis-ci/codesigning.asc.enc -out travis-ci/codesigning.asc -d
|
||||||
gpg --batch --fast-import travis-ci/codesigning.asc
|
gpg --batch --fast-import travis-ci/codesigning.asc
|
||||||
|
|
Loading…
Reference in a new issue