Skip to content

Commit

Permalink
Merge pull request zach-klippenstein#19 from zach-klippenstein/makefile
Browse files Browse the repository at this point in the history
Added a Makefile and used for CI.
  • Loading branch information
zach-klippenstein committed May 22, 2016
2 parents 02ccca2 + 267feea commit a7944b4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ go:
- tip

install:
# Needed for tip (394ac81)
- go get -t -v ./...
- make get-deps

script:
- make test
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.PHONY: test generate get-deps

test: generate
go test -v -race ./...

generate:
# stringer requires the packages to be installed.
go install -v
go generate -x ./...

get-deps:
go get -t -v ./...
go get -u golang.org/x/tools/cmd/stringer
4 changes: 2 additions & 2 deletions devicedescriptortype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions devicestate_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions util/errcode_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7944b4

Please sign in to comment.