extract travis stuff into scripts