Travis-CI cannot find relative module require
I have a Travis build job that is running mocha tests, however the build is failing with the error: Error: Cannot find module './sources/reddit' My file tree is the following feeds/ sources/ Reddit.js Feeds.js app.js Within Feeds.js I am doing var https = require('https'), q = require('q'), Reddit = require('./sources/reddit'); However it seems to be flagging up an error loading it up. This error is because I was referencing ./sources/reddit with reddit as lowercase, on the filesystem the file is Reddit with an uppercase R . Mac OSX deals with case sensitivity well, Linux does not. To complete