aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-21 14:26:27 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-04-21 14:26:27 +0200
commit63bbba6804c1ee5f52897aaedb8e58574b056bb9 (patch)
tree16463dda910015bceea3cfb81f16424d3d370054 /.travis.yml
parentfa9dd838ee89eaff543cdd81e7c97c842f982538 (diff)
downloadgo-git-63bbba6804c1ee5f52897aaedb8e58574b056bb9.tar.gz
transport: ssh, travis tests
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
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 ./...