Skip to content

Commit

Permalink
chore(ci): validate commit message when asked, only run tests once
Browse files Browse the repository at this point in the history
We only validate comment message when `VALIDATE_COMMIT_MSG` is set,
and don't run Travis twice anymore.

Fixes #2766
  • Loading branch information
chrahunt committed Jul 9, 2017
1 parent 545dc05 commit 7feaa5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ before_script:
- sh -e /etc/init.d/xvfb start
- npm run init
- export $(openssl aes-256-cbc -pass env:CREDENTIALS_PASS -d -in credentials)
- 'if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then npm run travis; else ./scripts/validate-commit-msg.sh $TRAVIS_COMMIT; fi'
- 'if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then ./scripts/validate-commit-msg.sh $TRAVIS_COMMIT; fi'
- 'if [ "$LINT" == "true" ]; then npm run lint; fi'

script:
Expand Down

0 comments on commit 7feaa5c

Please sign in to comment.