How to use Travis without a .travis.yml file in the root folder of a repository?

℡╲_俬逩灬. 提交于 2020-01-03 17:22:15

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!