mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
Merge pull request #1291 from prometheus/style-check
Let code format style errors fail CI
This commit is contained in:
commit
aa3fff1e67
@ -6,4 +6,4 @@ go:
|
||||
- 1.5
|
||||
|
||||
script:
|
||||
- make -f Makefile
|
||||
- make style test
|
||||
|
6
Makefile
6
Makefile
@ -21,6 +21,10 @@ endif
|
||||
|
||||
all: assets format build test
|
||||
|
||||
style:
|
||||
@echo ">> checking code style"
|
||||
@! gofmt -d **/*.go | grep '^'
|
||||
|
||||
test:
|
||||
@echo ">> running tests"
|
||||
@$(GO) test -short $(pkgs)
|
||||
@ -46,4 +50,4 @@ assets:
|
||||
@go-bindata $(bindata_flags) -pkg ui -o web/ui/bindata.go -ignore '(.*\.map|bootstrap\.js|bootstrap-theme\.css|bootstrap\.css)' web/ui/templates/... web/ui/static/...
|
||||
|
||||
|
||||
.PHONY: all format build test vet docker assets
|
||||
.PHONY: all style format build test vet docker assets
|
||||
|
Loading…
Reference in New Issue
Block a user