问题
I really want to use Travis without the need to store .travis.yml in the root folder of my repository. Any idea if it can be moved in a different folder, stored in another repository or specified on the Travis website?
回答1:
From Customizing the Build:
Travis CI uses
.travis.yml
file in the root of your repository to learn about your project and how you want your builds to be executed.
You can't move it, or configure it elsewhere.
stored in another repository
You could potentially create a boostrap repo that existed only to pull in the real repository during the build. You would lose many (all?) of the benefits of GitHub integration and branch tracking here.
(Please don't derail this question by asking "why" I may want or need to do that)
Generally, explaining why you need something can help people provide more general or creative answers, or help them to understand which constraints you're not aware of.
来源:https://stackoverflow.com/questions/31768540/how-to-use-travis-without-a-travis-yml-file-in-the-root-folder-of-a-repository