forked from AntoineAugusti/updown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (27 loc) · 952 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
language: go
sudo: false
matrix:
include:
- go: 1.5
- go: 1.6
- go: 1.7
- go: 1.8
- go: 1.9
- go: "1.10"
- go: tip
allow_failures:
- go: tip
before_install:
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo
- go get golang.org/x/tools/cmd/cover
install:
- if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then go get golang.org/x/lint/golint; fi
script:
- go get -t -v $(go list ./... | grep -v '/vendor/')
- if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then diff -u <(echo -n) <(gofmt -d .); fi
- if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then go vet $(go list ./... | grep -v '/vendor/'); fi
- if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then for package in $(go list ./... | grep -v '/vendor/'); do golint -set_exit_status $package; done; fi
- go test -coverprofile=coverage.txt -covermode=atomic -v -race $(go list ./... | grep -v '/vendor/')
after_success:
- bash <(curl -s https://codecov.io/bash)