Skip to content

Commit

Permalink
Makefile: install golangci-lint on testdeps
Browse files Browse the repository at this point in the history
Also download dependencies on testdeps.
  • Loading branch information
Francisco Souza committed Dec 27, 2018
1 parent adbbf8a commit 41506d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
HTTP_PORT ?= 8080
LOG_LEVEL ?= debug
CI_TAG ?= $(shell git describe --tags $(shell git rev-list --tags --max-count=1))
TAG_SUFFIX := $(shell echo $(CI_TAG) | tail -c 3)

all: test

testdeps:
cd /tmp && go get github.com/go-swagger/go-swagger/cmd/swagger
cd /tmp && go get github.com/golangci/golangci-lint/cmd/golangci-lint
go mod download

lint: testdeps
cd /tmp && go get github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run --fast -D errcheck -E megacheck --deadline 5m ./...

gotest: testdeps
Expand Down

0 comments on commit 41506d0

Please sign in to comment.