Refactor travis process.