From 4911e603ecdb444ebd8f793712edfc455214949e Mon Sep 17 00:00:00 2001 From: Aaron Longwell Date: Sat, 27 Mar 2021 17:13:14 -0700 Subject: [PATCH] Retire older Go versions. --- .travis.yml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 998fd8b..51b4040 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,32 +1,32 @@ language: go sudo: false go: -- '1.10' -- '1.11' -- '1.12' -- '1.13' -- master + - "1.12" + - "1.13" + - "1.14" + - "1.15" + - master install: -- go get github.com/pkg/errors -# golint is no longer available for go versions 1.7 and 1.8 -- | - INSTALLED_GO_VERSION=`go version | sed 's/go version go\(.*\) .*/\1/'` - echo $INSTALLED_GO_VERSION - if [ "$INSTALLED_GO_VERSION" != "1.7" ] && [ "$INSTALLED_GO_VERSION" != "1.8" ]; then - go get golang.org/x/lint/golint - fi + - go get github.com/pkg/errors + # golint is no longer available for go versions 1.7 and 1.8 + - | + INSTALLED_GO_VERSION=`go version | sed 's/go version go\(.*\) .*/\1/'` + echo $INSTALLED_GO_VERSION + if [ "$INSTALLED_GO_VERSION" != "1.7" ] && [ "$INSTALLED_GO_VERSION" != "1.8" ]; then + go get golang.org/x/lint/golint + fi before_script: -- | - which golint; - if [ $? == 0 ]; then - golint ./... - fi - go vet + - | + which golint; + if [ $? == 0 ]; then + golint ./... + fi + go vet script: -- go test -v -race -coverprofile=coverage.txt -covermode=atomic + - go test -v -race -coverprofile=coverage.txt -covermode=atomic after_success: -- bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://codecov.io/bash)