Closed
Description
I followed the tutorial for Travis CI configuration here: https://commitlint.js.org/#/guides-ci-setup
After creating a PR here: vojtechruz/commitlint-example#2
My Travis build failed with the following error:
const execa = require('execa');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3
My .travis.yml:
language: node_js
script:
- commitlint-travis
My commitlint config file:
module.exports = {
extends: ['@commitlint/config-conventional']
};
My dependencies:
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/travis-cli": "^8.2.0",
"husky": "^3.0.9"
}
Full log:
log.txt