Integrating with Travis CI?

Has anyone had success integrating their application with coveralls and travis ci?

How should one go about this?


Hi. I just got Travis CI to work with my meteor app. Here’s my .travis.yml file:

language: node_js
  - "6"
  # Install meteor
  - curl | /bin/sh
  # Add meteor to path (instead of asking for sudo in the Travis container)
  # We can then use the faster container infrastructure -
  - export PATH=$HOME/.meteor:$PATH
  - npm install -g spacejam
    - node_modules

By default, travis will run npm test to run the tests. So, in my package.json file I defined the test script as:

spacejam test --driver-package practicalmeteor:mocha

Notice that I’m using spacejam only when travis runs the tests (that’s why I install spacejam on before_script part of .travis.yml

I had to use node 6 because with node 4 I was getting a “The babel-runtime npm package could not be found in your node_modules”. Using node 6 solved that issue.

I hope you can get it working too.


You can even integrate your app with coverage report, look at this package