Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 7409b84

Browse files
committed
travis: install_key
1 parent 186c1e1 commit 7409b84

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ matrix:
1010

1111

1212
before_install:
13-
# we only decrypt the ssh key when we aren't in a pull request
14-
- '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'
15-
- eval "$(ssh-agent -s)"
16-
- chmod 600 .travis/deploy.pem
17-
- ssh-add .travis/deploy.pem
13+
# we only decrypt the SSH key when we aren't in a pull request
14+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash .travis/install_key.sh; fi'
1815

1916
install:
2017
- rm -rf $GOPATH/src/gopkg.in/src-d

.travis/install_key.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
openssl aes-256-cbc -K $encrypted_1477e58fe67a_key -iv $encrypted_1477e58fe67a_iv -in .travis/deploy.pem.enc -out .travis/deploy.pem -d
2+
eval "$(ssh-agent -s)"
3+
chmod 600 .travis/deploy.pem
4+
ssh-add .travis/deploy.pem

0 commit comments

Comments
 (0)