From 9b571a5a582a001bf33a34e15cf3a2044614c213 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 May 2017 14:20:16 +0100 Subject: [PATCH] travis-ci: only deploy from Travis-CI --- travis-ci/travis-deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/travis-ci/travis-deploy.sh b/travis-ci/travis-deploy.sh index 240dd26..cdc921b 100755 --- a/travis-ci/travis-deploy.sh +++ b/travis-ci/travis-deploy.sh @@ -1,6 +1,8 @@ #!/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 \ -in travis-ci/codesigning.asc.enc -out travis-ci/codesigning.asc -d gpg --batch --fast-import travis-ci/codesigning.asc