diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-26 14:27:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 14:27:39 +0200 |
commit | fd361169707a184f6c94f9e4a87c4e656f41f270 (patch) | |
tree | f5130ecbf074ad7af2b8c5847bdd0c4d64c35174 /.travis.yml | |
parent | 9e4f992d9633dd1ac8cc0b5bcd92b377190a9a03 (diff) | |
parent | 63bbba6804c1ee5f52897aaedb8e58574b056bb9 (diff) | |
download | go-git-fd361169707a184f6c94f9e4a87c4e656f41f270.tar.gz |
Merge pull request #356 from mcuadros/ssh-default-auth
transport: ssh, new DefaultAuthBuilder variable
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index e527225..0086733 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,15 +25,18 @@ before_script: - make build-git before_install: - - eval "$(ssh-agent -s)" - # we only decrypt the SSH key when we aren't in a pull request - #- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash .travis/install_key.sh; fi' - #- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export SSH_AUTH_SOCK="" ; fi'\ - # temporal fix skip of SSH test - - export SSH_AUTH_SOCK="" - git config --global user.email "travis@example.com" - git config --global user.name "Travis CI" + # we only decrypt the SSH key when we aren't in a pull request + - > + if [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then \ + bash .travis/install_key.sh; \ + SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \ + else \ + export SSH_AUTH_SOCK=""; \ + fi + install: - go get -v -t ./... |