Optimizations for travis-ci