Ripping off code from eriwen to get Travis up and running