Skip to content

Commit c8de60b

Browse files
committed
Merge pull request #295 from vbatts/vbatts-test
Makefile: add a target to run tests
2 parents 72e7cf9 + 0cd1ca4 commit c8de60b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ DOC_FILES := \
1515
runtime-config.md \
1616
runtime-config-linux.md \
1717
glossary.md
18+
EPOCH_TEST_COMMIT := 041eb73d2e0391463894c04c8ac938036143eba3
1819

1920
docs: pdf html
21+
.PHONY: docs
2022

2123
pdf:
2224
@mkdir -p output/ && \
@@ -40,6 +42,22 @@ html:
4042
vbatts/pandoc -f markdown_github -t html5 -o /output/docs.html $(patsubst %,/input/%,$(DOC_FILES)) && \
4143
ls -sh $(shell readlink -f output/docs.html)
4244

45+
.PHONY: test .govet .golint .gitvalidation
46+
47+
test: .govet .golint .gitvalidation
48+
49+
# `go get golang.org/x/tools/cmd/vet`
50+
.govet:
51+
go vet -x ./...
52+
53+
# `go get github.com/golang/lint/golint`
54+
.golint:
55+
golint ./...
56+
57+
# `go get github.com/vbatts/git-validation`
58+
.gitvalidation:
59+
git-validation -q -run DCO,short-subject -v -range $(EPOCH_TEST_COMMIT)..HEAD
60+
4361
clean:
4462
rm -rf output/ *~
4563

0 commit comments

Comments
 (0)