Skip to content

Commit be7d20a

Browse files
committed
Makefile: add a target to run tests
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]>
1 parent 6a6ba67 commit be7d20a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ html:
3939
vbatts/pandoc -f markdown_github -t html5 -o /output/docs.html $(patsubst %,/input/%,$(DOC_FILES)) && \
4040
ls -sh $(shell readlink -f output/docs.html)
4141

42+
test: .govet .golint
43+
44+
# `go get golang.org/x/tools/cmd/vet`
45+
.govet:
46+
go vet -x ./...
47+
48+
# `go get github.com/golang/lint/golint`
49+
.golint:
50+
golint ./...
51+
52+
# `go get github.com/vbatts/git-validation`
53+
.gitvalidation:
54+
git-validation -run DCO,short-subject -v -range ${TRAVIS_COMMIT_RANGE}
55+
4256
clean:
4357
rm -rf output/ *~
4458

0 commit comments

Comments
 (0)