Permalink
Browse files

Ensure ssh-agent environment available to all

  • Loading branch information...
1 parent 90988d6 commit 08bb468b96aa02486acb50bce316a1915aa0509d @philwhineray philwhineray committed Dec 16, 2016
Showing with 2 additions and 3 deletions.
  1. +1 −0 .travis.yml
  2. +1 −3 .travis/decrypt-if-have-key
View
@@ -17,6 +17,7 @@ addons:
#
# Setup environment
before_install:
+ - eval "$(ssh-agent -s)"
- ./.travis/decrypt-if-have-key decb6f6387c4
#
# Run
@@ -22,9 +22,7 @@ done
if [ -f .travis/travis_rsa ]
then
- echo "ssh key present - loading agent"
- eval "$(ssh-agent -s)"
-
+ echo "ssh key present - loading to agent"
# add key, then remove to prevent leaks
chmod 600 .travis/travis_rsa
ssh-add .travis/travis_rsa

0 comments on commit 08bb468

Please sign in to comment.