Add linting

This commit is contained in:
Calle Pettersson
2019-01-23 09:55:26 +01:00
committed by Calle Pettersson
parent 2053dea3ac
commit 76ddad34b8
3 changed files with 11 additions and 3 deletions
+6 -3
View File
@@ -1,14 +1,17 @@
export GOOS=windows
fmt:
gofmt -l -w -s .
build:
promu build -v
test:
go test -v ./...
lint:
gometalinter --vendor --config gometalinter.config ./...
fmt:
gofmt -l -w -s .
crossbuild:
# The prometheus/golang-builder image for promu crossbuild doesn't exist
# on Windows, so for now, we'll just build twice