File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414matrix :
1515 fast_finish : true
1616 include :
17- - node_js : " 8"
17+ - name : " Lint code and commit message format"
18+ node_js : " 8"
1819 env : VALIDATE_COMMIT_MSG=true LINT=true
1920
2021before_install :
2122 - npm config set loglevel warn
2223 - g++-4.8 --version
23- - if [[ "`node --version`" = v4* ]]; then npm install -g npm@latest-3; fi
2424
2525addons :
2626 firefox :
@@ -36,7 +36,10 @@ before_script:
3636 - sh -e /etc/init.d/xvfb start
3737 - npm run init
3838 - export $(openssl aes-256-cbc -pass env:CREDENTIALS_PASS -d -in credentials)
39- - ' if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then ./scripts/validate-commit-msg.sh $TRAVIS_COMMIT; fi'
39+ - echo "git head commit $(git rev-parse FETCH_HEAD)"
40+ - echo "TRAVIS_COMMIT $TRAVIS_COMMIT"
41+ - echo "TRAVIS_PULL_REQUEST_SHA $TRAVIS_PULL_REQUEST_SHA"
42+ - ' if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then ./scripts/validate-commit-msg.sh $TRAVIS_PULL_REQUEST_SHA; fi'
4043 - ' if [ "$LINT" == "true" ]; then npm run lint; fi'
4144
4245script :
You can’t perform that action at this time.
0 commit comments