Optimised travis CI script.