Travis script optimization