forked from mozillazg/request
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (43 loc) · 1.07 KB
/
.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
language: go
go:
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7
- tip
sudo: false
before_install:
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/tools/godep
# - curl https://glide.sh/get | sh
- |
wget https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz && \
tar zxvf glide-v0.12.3-linux-amd64.tar.gz && \
chmod +x linux-amd64/glide && \
mv linux-amd64/glide "$GOPATH/bin"
install:
- |
version=${TRAVIS_GO_VERSION:0:3} && \
if [[ "$version" == "1.1" \
|| "$version" == "1.2" \
|| "$version" == "1.3" \
|| "$version" == "1.4" \
|| "$version" == "1.5" ]]; then
godep restore
else
glide install
fi
- go build
script:
- make test
- if [[ $TRAVIS_GO_VERSION != 'tip' ]]; then $HOME/gopath/bin/goveralls -service=travis-ci -ignore=vendor/; fi
matrix:
allow_failures:
- go: 1.1
- go: 1.2
- go: tip