Rearrange travis build lifecycle