forked from zach-klippenstein/goadb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zach-klippenstein#19 from zach-klippenstein/makefile
Added a Makefile and used for CI.
- Loading branch information
Showing
5 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,7 @@ go: | |
- tip | ||
|
||
install: | ||
# Needed for tip (394ac81) | ||
- go get -t -v ./... | ||
- make get-deps | ||
|
||
script: | ||
- make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.