Recently, I added my projects node-fixmyjs jshint-autofix to Travis-CI which is excellent. Travis is a build system for the open source community, I recommend you take a look at it if you haven’t.

Anyways, both of my projects depended on submodules and the tests were initially failing because I didn’t know how to tell Travis to download the submodules before running the unit tests.

So here’s what you’re supposed to put in your .travis.yml file:

language: node_js
  - 0.6
  git submodule init && git submodule --quiet update