aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-10-18 10:38:04 +0200
committerGitHub <noreply@github.com>2016-10-18 10:38:04 +0200
commit186c1e154706828909de62914434bff046a93c6a (patch)
tree5bab652195961230d79fd8fb42b00bce9276847b /.travis.yml
parent5b562aad6b2018a203ab786d7e302d8f436582c2 (diff)
downloadgo-git-186c1e154706828909de62914434bff046a93c6a.tar.gz
travis: skip decrypt on prs
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 9c6d2e1..74f9a68 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,8 @@ matrix:
before_install:
- - openssl aes-256-cbc -K $encrypted_1477e58fe67a_key -iv $encrypted_1477e58fe67a_iv -in .travis/deploy.pem.enc -out .travis/deploy.pem -d
+ # we only decrypt the ssh key when we aren't in a pull request
+ - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then openssl aes-256-cbc -K $encrypted_1477e58fe67a_key -iv $encrypted_1477e58fe67a_iv -in .travis/deploy.pem.enc -out .travis/deploy.pem -d; fi'
- eval "$(ssh-agent -s)"
- chmod 600 .travis/deploy.pem
- ssh-add .travis/deploy.pem