Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

travis-ci

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?

like image 220
Omar Avatar asked Aug 02 '15 04:08

Omar


People also ask

What is Travis Yml file?

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.


1 Answers

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.

like image 133
Joe Avatar answered Oct 17 '22 12:10

Joe