Skip to content

Commit

Permalink
fix(travis): Validate TRAVIS_PULL_REQUEST_SHA rather than TRAVIS_COMM…
Browse files Browse the repository at this point in the history
…IT. (#3093)

Also add some debug messages for commits and remove an old node4 command.
  • Loading branch information
johnjbarton authored Jul 27, 2018
1 parent 88b977f commit a58fa45
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ env:
matrix:
fast_finish: true
include:
- node_js: "8"
- name: "Lint code and commit message format"
node_js: "8"
env: VALIDATE_COMMIT_MSG=true LINT=true

before_install:
- npm config set loglevel warn
- g++-4.8 --version
- if [[ "`node --version`" = v4* ]]; then npm install -g npm@latest-3; fi

addons:
firefox:
Expand All @@ -36,7 +36,10 @@ 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 ./scripts/validate-commit-msg.sh $TRAVIS_COMMIT; fi'
- echo "git head commit $(git rev-parse FETCH_HEAD)"
- echo "TRAVIS_COMMIT $TRAVIS_COMMIT"
- echo "TRAVIS_PULL_REQUEST_SHA $TRAVIS_PULL_REQUEST_SHA"
- 'if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then ./scripts/validate-commit-msg.sh $TRAVIS_PULL_REQUEST_SHA; fi'
- 'if [ "$LINT" == "true" ]; then npm run lint; fi'

script:
Expand Down

0 comments on commit a58fa45

Please sign in to comment.