-
Notifications
You must be signed in to change notification settings - Fork 24
travis: only run the git-validation on pull-requests #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.travis.yml
Outdated
| - go build . | ||
| - go test -v ./... | ||
| - ./git-validation -run DCO,short-subject,dangling-whitespace -v | ||
| - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./git-validation -run DCO,short-subject,dangling-whitespace -v ; fi' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a better fix would be to build this logic into git-validation. If it can't handle non-PR tests, we don't want to have to copy this guard into every consuming project's invocation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh #24 (comment)
2c39d64 to
13aeff1
Compare
Fixes #24 https://docs.travis-ci.com/user/pull-requests/ Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
|
|
||
| before_script: | ||
| - env | ||
| - echo $TRAVIS_COMMIT_RANGE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the env (which I approve of), you can drop all the following echo $TRAVIS_… lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll pick that up in #23
|
this will silently cause the |
Fixes #24
https://docs.travis-ci.com/user/pull-requests/
Signed-off-by: Vincent Batts vbatts@hashbangbash.com