]> arthur.barton.de Git - netdata.git/commitdiff
Ensure ssh-agent environment available to all
authorPhilip Whineray <phil@firehol.org>
Fri, 16 Dec 2016 10:37:10 +0000 (10:37 +0000)
committerPhilip Whineray <phil@firehol.org>
Fri, 16 Dec 2016 10:37:10 +0000 (10:37 +0000)
.travis.yml
.travis/decrypt-if-have-key

index 465a8f2173f3ca88e6b9ae4f302503921de07c1f..5968c1251f39ec53bf81d4505cd3a18c09e65ac1 100644 (file)
@@ -17,6 +17,7 @@ addons:
 #
 # Setup environment
 before_install:
+ - eval "$(ssh-agent -s)"
  - ./.travis/decrypt-if-have-key decb6f6387c4
 #
 # Run
index 71dcb5c3f38a63645de48ba15fabca63f8e6a3bd..7fcab8970c00f3480bdb4c846a997ed42fa93a8d 100755 (executable)
@@ -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