Refactor travis setting