Skip to content

Commit

Permalink
Makefile: add a target to run tests
Browse files Browse the repository at this point in the history
For now, just vet and lint. But would like to include the commit
validator, once a good range is selectable.

Signed-off-by: Vincent Batts <[email protected]>
  • Loading branch information
vbatts committed Jan 7, 2016
1 parent 6a6ba67 commit be7d20a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ html:
vbatts/pandoc -f markdown_github -t html5 -o /output/docs.html $(patsubst %,/input/%,$(DOC_FILES)) && \
ls -sh $(shell readlink -f output/docs.html)

test: .govet .golint

# `go get golang.org/x/tools/cmd/vet`
.govet:
go vet -x ./...

# `go get github.com/golang/lint/golint`
.golint:
golint ./...

# `go get github.com/vbatts/git-validation`
.gitvalidation:
git-validation -run DCO,short-subject -v -range ${TRAVIS_COMMIT_RANGE}

clean:
rm -rf output/ *~

0 comments on commit be7d20a

Please sign in to comment.