How to set up coveralls in an Angular GitHub + TravisCI project

To be clear my Angular project is hosted on GitHub, I’m running the tests in TravisCI using:

package.json scripts

 "test-ci": "ng test --watch=false"

my .travis,yml

script:
  - ng lint
  - npm run test-ci
  - npm run e2e
  - npm run build

Kind of problem I was having yesterday that @Montana helped me with.

Hey @SolarUltima once again, try opening npm and running:

npm install coveralls --save-dev

And then in your package.json, scripts, change:

test-ci": "ng test --watch=false

To:

 `test-ci": "ng test --watch=false --code-coverage && cat ./coverage/lcov.info | coveralls`

You can also grep this out, to make sure this worked.

Cheers,
Montana

Imprint