Refactor travis test.