forked from src-d/go-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (40 loc) · 960 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: go
go:
- 1.8
- tip
go_import_path: gopkg.in/src-d/go-git.v4
env:
- GIT_VERSION=master
- GIT_VERSION=v1.9.3
- GIT_VERSION=v2.11.0
matrix:
fast_finish: true
allow_failures:
- go: tip
cache:
directories:
- $HOME/.git-dist
before_script:
- export GIT_DIST_PATH=$HOME/.git-dist
- make build-git
before_install:
- git config --global user.email "[email protected]"
- 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; \
export SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \
else \
export SSH_AUTH_SOCK=""; \
fi
install:
- go get -v -t ./...
script:
- export GIT_EXEC_PATH=$GIT_DIST_PATH
- export PATH=$GIT_DIST_PATH:$PATH
- git version
- make test-coverage
- go vet ./...
after_success:
- bash <(curl -s https://codecov.io/bash)