Merge pull request #422 from vbatts/travis_make_target

travis: have make target be travis sensitive
This commit is contained in:
Vincent Batts 2016-05-03 16:35:52 -04:00
commit cbea66a275
1 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,12 @@ endif
# When this is running in travis, it will only check the travis commit range
.gitvalidation:
@which git-validation > /dev/null 2>/dev/null || (echo "ERROR: git-validation not found. Consider 'make install.tools' target" && false)
git-validation -q -run DCO,short-subject,dangling-whitespace -v -range $(EPOCH_TEST_COMMIT)..HEAD
ifeq ($(TRAVIS),true)
git-validation -q -run DCO,short-subject,dangling-whitespace
else
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
endif
.PHONY: install.tools
install.tools: .install.golint .install.govet .install.gitvalidation