Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a Makefile and used for CI. #19

Merged
merged 1 commit into from
May 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.