2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-11-09 19:21:52 +08:00

Fix and optimize travis config

There is no point in running shadow and lints for all version of go.

Also, remove 1.3 and 1.4.
This commit is contained in:
Soheil Hassas Yeganeh 2016-04-24 14:02:29 -04:00
parent d5924ef0b4
commit 3077b24d47

View File

@ -1,22 +1,27 @@
language: go language: go
go: go:
- 1.3
- 1.4
- 1.5 - 1.5
- 1.6 - 1.6
- tip
matrix:
allow_failures:
- go: tip
gobuild_args: -race gobuild_args: -race
before_install: before_install:
- go get -u github.com/golang/lint/golint - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get -u github.com/kisielk/errcheck; fi
- if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then go get -u github.com/kisielk/errcheck; fi - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get -u github.com/golang/lint/golint; fi
- go get -u golang.org/x/tools/cmd/vet
before_script: before_script:
- '! gofmt -s -l . | read' - '! gofmt -s -l . | read'
- golint ./...
- echo $TRAVIS_GO_VERSION - echo $TRAVIS_GO_VERSION
- if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then errcheck ./...; fi - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then golint ./...; fi
- go vet . - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then errcheck ./...; fi
- go tool vet --shadow . - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go tool vet .; fi
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go tool vet --shadow .; fi
script:
- go test -v ./...