Skip to content

Commit

Permalink
Updating golangci (#176)
Browse files Browse the repository at this point in the history
* Updating golangci

* Make golangci-lint run on travis

Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
  • Loading branch information
Nick Jüttner authored and szuecs committed Nov 23, 2019
1 parent b30e04d commit ac2b3c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ dist: xenial
language: go

go:
- 1.12.x
- 1.13.x

env:
- GO111MODULE=on GOLANGCI_RELEASE="v1.16.0"
- GO111MODULE=on GOLANGCI_RELEASE="v1.21.0"

before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- go get github.com/mattn/goveralls
- go get github.com/lawrencewoodman/roveralls
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}

script:
- make check
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ clean:
test: $(GENERATED)
go test -v $(GOPKGS)

check:
golangci-lint run ./...
check: $(GENERATED)
go mod download
golangci-lint run --timeout=2m ./...

$(GENERATED):
./hack/update-codegen.sh
Expand Down

0 comments on commit ac2b3c2

Please sign in to comment.