Skip to content

Commit

Permalink
travis: add install hacks for goveralls and golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abursavich committed Sep 21, 2020
1 parent 547f6b1 commit d8a95a7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ dist: bionic

language: go

env:
global:
- GO111MODULE=on
- LINT_VERSION=v1.28.3

go:
- oldstable
- stable
Expand All @@ -15,9 +10,12 @@ go:
notifications:
email: false

before_script:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin $LINT_VERSION
- go install github.com/mattn/goveralls
install:
# TODO(abursavich): remove these hacks once go1.16 is oldstable
- pushd $(mktemp -d) && go mod init "install-hack"
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest || go install github.com/golangci/golangci-lint/cmd/golangci-lint
- go install github.com/mattn/goveralls@latest || go install github.com/mattn/goveralls
- popd

script:
- golangci-lint run
Expand Down

0 comments on commit d8a95a7

Please sign in to comment.