Skip to content

Commit

Permalink
Retire older Go versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
adlio committed Mar 28, 2021
1 parent 62c161d commit 4911e60
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4911e60

Please sign in to comment.