Add a Travis-ci configuration

And modify test classes so they can be tested using Travis-CI.