From 9e1f5955c0d22b55d9e20d6faa28589f83b2faca Mon Sep 17 00:00:00 2001 From: Matt Silverlock Date: Mon, 3 Sep 2018 08:43:05 -0700 Subject: [PATCH] Always run on the latest stable Go version. (#402) Only run vet on the latest Go version. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1922f6b..0e58a72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,8 @@ matrix: - go: 1.9.x - go: 1.10.x - go: 1.11.x + - go: 1.x + env: LATEST=true - go: tip allow_failures: - go: tip @@ -18,5 +20,5 @@ install: script: - go get -t -v ./... - diff -u <(echo -n) <(gofmt -d .) - - go tool vet . + - if [[ "$LATEST" = true ]]; then go tool vet .; fi - go test -v -race ./...