Skip to content

Commit dd40abe

Browse files
committed
Makefile: Use 'ifdef TRAVIS_COMMIT_RANGE' for git-validation
Only use the auto-ranging when Travis tells us what the range is. Use our EPOCH_TEST_COMMIT-based range in all other cases. ifdef is described in [1]. [1]: https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html Signed-off-by: W. Trevor King <[email protected]>
1 parent d9b7bc3 commit dd40abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ endif
7474
# When this is running in travis, it will only check the travis commit range
7575
.gitvalidation:
7676
@which git-validation > /dev/null 2>/dev/null || (echo "ERROR: git-validation not found. Consider 'make install.tools' target" && false)
77-
ifeq ($(TRAVIS),true)
77+
ifdef TRAVIS_COMMIT_RANGE
7878
git-validation -q -run DCO,short-subject,dangling-whitespace
7979
else
8080
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD

0 commit comments

Comments
 (0)