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?
travis. yml , which is a YAML format text file, to the root directory of the repository. This file specifies the programming language used, the desired building and testing environment (including dependencies which must be installed before the software can be built and tested), and various other parameters.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With