Skip to content

Conversation

@vbatts
Copy link
Owner

@vbatts vbatts commented Apr 27, 2017

@vbatts vbatts changed the title test travis: only run the git-validation on pull-requests Apr 27, 2017
.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'
Copy link
Contributor

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.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vbatts vbatts force-pushed the fix_push_ci branch 2 times, most recently from 2c39d64 to 13aeff1 Compare April 27, 2017 17:55

before_script:
- env
- echo $TRAVIS_COMMIT_RANGE
Copy link
Contributor

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.

Copy link
Owner Author

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

@vbatts
Copy link
Owner Author

vbatts commented Apr 27, 2017

this will silently cause the push builds for folks using git-validation be ignored just for validation. Which is okay, i feel, because those push ci-builds have been an issue on OCI projects as well.

@vbatts vbatts merged commit ac0930a into master Apr 27, 2017
@vbatts vbatts deleted the fix_push_ci branch April 27, 2017 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants