Skip to content

Commit

Permalink
Merge pull request #521 from wking/makefile-travis-ifdef
Browse files Browse the repository at this point in the history
Makefile: Use 'ifdef TRAVIS_COMMIT_RANGE' for git-validation
  • Loading branch information
jonboulle authored Jan 24, 2017
2 parents c91a349 + 8236f61 commit 2d7ee1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ before_install:
install: true

script:
- env | grep TRAVIS_
- make .gitvalidation
- make lint
- make check-license
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ img/%.png: img/%.dot
# 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)
ifeq ($(TRAVIS),true)
ifdef TRAVIS_COMMIT_RANGE
git-validation -q -run DCO,short-subject,dangling-whitespace
else
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
Expand Down

0 comments on commit 2d7ee1a

Please sign in to comment.