Reordered build strategy to enable travis to work