Skip to content

Commit

Permalink
Add style check
Browse files Browse the repository at this point in the history
* Add a `style` make target.
* Run tests in travis.

Signed-off-by: Ben Kochie <[email protected]>
  • Loading branch information
SuperQ authored and Ben Kochie committed Jul 1, 2018
1 parent b7131e0 commit 05fe187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ go:
- "1.9"
- "1.10.x"
- master

script:
- make style build
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ docker-release:
docker tag trickster:$(PROGVER) tricksterio/trickster:$(PROGVER)
docker tag tricksterio/trickster:$(PROGVER) tricksterio/trickster:latest

.PHONY: style
style:
! gofmt -d $$(find . -path ./vendor -prune -o -name '*.go' -print) | grep '^'

test:
go get github.com/alicebob/miniredis
go test -run '' -o ${GOPATH}/bin/trickster -v
Expand Down

0 comments on commit 05fe187

Please sign in to comment.