2
0
Эх сурвалжийг харах

start ssh-agent from outside of RunCi

Andy Li 9 жил өмнө
parent
commit
1b89671ec6
2 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 0
      .travis.yml
  2. 0 1
      tests/RunCi.hx

+ 2 - 0
.travis.yml

@@ -133,6 +133,8 @@ before_script:
     fi
   - mysql -u root -e "CREATE DATABASE haxe_test;"
   - mysql -u root -e "grant all on haxe_test.* to travis@localhost;"
+  # start ssh-agent for deployment to haxe.org
+  - eval `ssh-agent -s`
 
 script:
   - make package_src -s

+ 0 - 1
tests/RunCi.hx

@@ -637,7 +637,6 @@ class RunCi {
 				//setup deploy_key
 				runCommand("openssl aes-256-cbc -k \"$deploy_key_decrypt\" -in extra/deploy_key.enc -out extra/deploy_key -d");
 				runCommand("chmod 600 extra/deploy_key");
-				runCommand("eval `ssh-agent -s`");
 				runCommand("ssh-add extra/deploy_key");
 
 				runCommand("make", ["-s", "deploy_doc"]);