diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-15 09:40:48 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-15 09:40:48 +0100 |
commit | 23574526ad0f6d2ce5ca706ea1fea78c8c29be11 (patch) | |
tree | aadf3e71d187b6d71db95e17af16316b1046c884 /.travis.yml | |
parent | 130bc17dfe2ed88e2f122a0b44a9a45f5114697d (diff) | |
download | go-git-23574526ad0f6d2ce5ca706ea1fea78c8c29be11.tar.gz |
.travis CI with multiple git versions
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 19 |
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 |