travis: add Go 1.10 and run vet there instead of 1.9 (#1913)
This commit is contained in:
@ -5,19 +5,20 @@ go:
|
|||||||
- 1.7.x
|
- 1.7.x
|
||||||
- 1.8.x
|
- 1.8.x
|
||||||
- 1.9.x
|
- 1.9.x
|
||||||
|
- 1.10.x
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- go: 1.9.x
|
- go: 1.10.x
|
||||||
env: RUN386=1
|
env: RUN386=1
|
||||||
|
|
||||||
go_import_path: google.golang.org/grpc
|
go_import_path: google.golang.org/grpc
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ "$TRAVIS_GO_VERSION" = 1.9* && "$GOARCH" != "386" ]]; then ./vet.sh -install || exit 1; fi
|
- if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh -install || exit 1; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ -n "$RUN386" ]]; then export GOARCH=386; fi
|
- if [[ -n "$RUN386" ]]; then export GOARCH=386; fi
|
||||||
- if [[ "$TRAVIS_GO_VERSION" = 1.9* && "$GOARCH" != "386" ]]; then ./vet.sh || exit 1; fi
|
- if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh || exit 1; fi
|
||||||
- make test || exit 1
|
- make test || exit 1
|
||||||
- if [[ "$GOARCH" != "386" ]]; then make testrace; fi
|
- if [[ "$GOARCH" != "386" ]]; then make testrace; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user