More complex Travis-CI script to optimize testing.