Skip to content
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

Fix Travis commit message checks #2767

Merged
merged 2 commits into from
Jul 19, 2017
Merged

Fix Travis commit message checks #2767

merged 2 commits into from
Jul 19, 2017

Conversation

chrahunt
Copy link
Contributor

@chrahunt chrahunt commented Jul 10, 2017

There were a couple of problems related to commit message validation:

  1. inverted condition in travis beforeinstall check
  2. passing path relative to project root to validate-commit-msg rather than relative to .git directory

With those fixed, the ✅ is back!

We only validate comment message when `VALIDATE_COMMIT_MSG` is set,
and don't run Travis twice anymore.

Fixes #2766
We pass the path relative to the .git directory, which is what
`validate-commit-msg` is expecting. A few extra items will also
be traced in case anything breaks in the future.

Fixes #2753
@chrahunt chrahunt changed the title chore(ci): validate commit message when asked, only run tests once Fix Travis commit message checks Jul 10, 2017
@chrahunt
Copy link
Contributor Author

Ping @dignifiedquire. Hopefully this will help unblock the existing PRs.

@dignifiedquire dignifiedquire merged commit 69978ee into karma-runner:master Jul 19, 2017
@dignifiedquire
Copy link
Member

Thank you, this should make things easier !!

@chrahunt chrahunt deleted the fix-travis-checks branch July 19, 2017 21:37
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.

2 participants