-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from AntoineAugusti/update-travis
Update .travis.yml due to latest Go version
- Loading branch information
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
language: go | ||
before_install: | ||
- go get golang.org/x/tools/cmd/vet | ||
- go get github.com/modocache/gover | ||
- go get github.com/AntoineAugusti/feature-flags/... | ||
sudo: false | ||
|
||
matrix: | ||
include: | ||
- go: 1.4 | ||
- go: 1.5 | ||
- go: 1.6 | ||
- go: tip | ||
allow_failures: | ||
- go: tip | ||
|
||
script: | ||
- go vet github.com/AntoineAugusti/feature-flags... | ||
- go test -v ./... | ||
- go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | xargs -i sh -c {} | ||
- gover . coverprofile.txt | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -f coverprofile.txt | ||
- go get -t -v $(go list ./...) | ||
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then diff -u <(echo -n) <(gofmt -d .); fi | ||
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go vet $(go list ./...); fi | ||
- go test -v -race $(go list ./...) |