Skip to content

Commit

Permalink
CI: Fixes for Go 1.13 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel McCarney authored and jsha committed Sep 6, 2019
1 parent 749354b commit 0dd24b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ linters:
- gocritic
- gochecknoinits
- gochecknoglobals
- typecheck # Go 1.13 incompatible pending new golangci-lint binary release
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
language: go
go:
- "stable"
env:
- GO111MODULE=on

# Override the base install phase so that the project can be installed using
# `-mod=vendor` to use the vendored dependencies
install:
# Install `golangci-lint` using their installer script
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.13.2
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
# Install `cover` and `goveralls` without `GO111MODULE` enabled so that we
# don't download project dependencies and just put the tools in $GOPATH/bin
- GO111MODULE=off go get golang.org/x/tools/cmd/cover
Expand All @@ -17,7 +15,6 @@ install:

script:
- set -e
- go mod download
- golangci-lint run
- go test -mod=vendor -v -race -covermode=atomic -coverprofile=coverage.out ./...
- goveralls -coverprofile=coverage.out -service=travis-ci

0 comments on commit 0dd24b5

Please sign in to comment.