Merge pull request #216 from wking/travis-test-branch-commits

.travis: Convert TRAVIS_COMMIT_RANGE base...head to base..head
This commit is contained in:
Michael Crosby 2017-01-24 10:04:50 -08:00 committed by GitHub
commit 3297cd573e
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,9 @@ before_install:
install: true
script:
- env | grep TRAVIS_
- make .govet
- make .golint
- make .gitvalidation
- echo "${TRAVIS_COMMIT_RANGE} -> ${TRAVIS_COMMIT_RANGE/.../..} (travis-ci/travis-ci#4596)"
- TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE/.../..}" make .gitvalidation
- make docs

View File

@ -74,7 +74,7 @@ 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)
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