generator-ocaml
generator-ocaml copied to clipboard
Fix Travis CI build
All tests set in this project npm run scripts
run ok on my machine:
✓ The linting tests done using eslint ✓ The unit tests done using mocha
✓ And also the tests coverage done using Istanbul
Everything also runs okay on Codeship CI as can be seen here.
But when it comes to Travis CI, I get a badge.
Apparently Travis CI gets an Uncaught TypeError: Cannot read property 'name' of undefined
while running mocha which both my machine and Codeship CI couldn't get as you can see this section of the log:
> [email protected] tests /home/travis/build/mabrasil/generator-ocaml
> mocha
generator-ocaml:app
1) "before all" hook
0 passing (730ms)
1 failing
1) generator-ocaml:app "before all" hook:
Uncaught TypeError: Cannot read property 'name' of undefined
at module.exports.yeoman.Base.extend.prompting (generators/app/index.js:61:22)
at Object.<anonymous> (node_modules/yeoman-generator/lib/base.js:436:25)
at node_modules/yeoman-generator/node_modules/run-async/index.js:24:25
at node_modules/yeoman-generator/lib/base.js:448:8
I'll try to figure out what's going on.