make travis in two phases.