fix then refactor .travis.yml