Skip to content

Commit

Permalink
Merge pull request #216 from wking/travis-test-branch-commits
Browse files Browse the repository at this point in the history
.travis: Convert TRAVIS_COMMIT_RANGE base...head to base..head
  • Loading branch information
crosbymichael committed Jan 24, 2017
2 parents 8df6024 + 550a73a commit 3297cd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3297cd5

Please sign in to comment.