Skip to content

Commit

Permalink
Let code format style errors fail CI
Browse files Browse the repository at this point in the history
  • Loading branch information
grobie committed Jan 6, 2016
1 parent a50b699 commit e7fb9d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ go:
- 1.5

script:
- make -f Makefile
- make style test
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit e7fb9d0

Please sign in to comment.