Refactor travis.yml to .travis.yml