generator-ocaml icon indicating copy to clipboard operation
generator-ocaml copied to clipboard

Fix Travis CI build

Open ythecombinator opened this issue 8 years ago • 0 comments

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

Mocha

✓ And also the tests coverage done using Istanbul

Istanbul

Everything also runs okay on Codeship CI as can be seen here.

But when it comes to Travis CI, I get a Build Status 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.

ythecombinator avatar Feb 08 '16 04:02 ythecombinator