aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 47eaea2..c63c1c4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,14 +4,26 @@ go:
- 1.7
- tip
+env:
+ - GIT_VERSION=master
+ - GIT_VERSION=v1.9.3
+ - GIT_VERSION=v2.11.0
+
matrix:
allow_failures:
- go: tip
+cache:
+ directories:
+ - $HOME/.git-dist
+
+before_script:
+ - export GIT_DIST_PATH=$HOME/.git-dist
+ - make build-git
before_install:
- eval "$(ssh-agent -s)"
- # we only decrypt the SSH key when we aren't in a pull request
+ # 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'
- git config --global user.email "travis@example.com"
@@ -25,7 +37,10 @@ install:
- go get -v -t ./...
script:
+ - export GIT_EXEC_PATH=$GIT_DIST_PATH
+ - export PATH=$GIT_DIST_PATH:$PATH
+ - git version
- make test-coverage
after_success:
- - bash <(curl -s https://codecov.io/bash)
+ - bash <(curl -s https://codecov.io/bash) \ No newline at end of file