Skip to content

Commit

Permalink
Merge pull request #295 from vbatts/vbatts-test
Browse files Browse the repository at this point in the history
Makefile: add a target to run tests
  • Loading branch information
vbatts committed Jan 20, 2016
2 parents 72e7cf9 + 0cd1ca4 commit c8de60b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ DOC_FILES := \
runtime-config.md \
runtime-config-linux.md \
glossary.md
EPOCH_TEST_COMMIT := 041eb73d2e0391463894c04c8ac938036143eba3

docs: pdf html
.PHONY: docs

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

.PHONY: test .govet .golint .gitvalidation

test: .govet .golint .gitvalidation

# `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 -q -run DCO,short-subject -v -range $(EPOCH_TEST_COMMIT)..HEAD

clean:
rm -rf output/ *~

0 comments on commit c8de60b

Please sign in to comment.