Refactor travis configuration