Improved Travis CI support

I noticed in my last pull request that Travis CI wasn't building or running the tests correctly. This should fix that. The tests still fail, because they expect an existing git repository that doesn't exist, but now they run.