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:
commit
3297cd573e
|
@ -16,7 +16,9 @@ before_install:
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- env | grep TRAVIS_
|
||||||
- make .govet
|
- make .govet
|
||||||
- make .golint
|
- 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
|
- make docs
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -74,7 +74,7 @@ endif
|
||||||
# When this is running in travis, it will only check the travis commit range
|
# When this is running in travis, it will only check the travis commit range
|
||||||
.gitvalidation:
|
.gitvalidation:
|
||||||
@which git-validation > /dev/null 2>/dev/null || (echo "ERROR: git-validation not found. Consider 'make install.tools' target" && false)
|
@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
|
git-validation -q -run DCO,short-subject,dangling-whitespace
|
||||||
else
|
else
|
||||||
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
|
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
|
||||||
|
|
Loading…
Reference in New Issue