Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Travis for sub directory?

Tags:

I have a repo, consisting of some files and a Symfony project in a sub directory.

How can I use Travis build only for the Symfony project in the sub directory of my repository?

like image 759
Victor Bocharsky Avatar asked Jun 17 '14 12:06

Victor Bocharsky


People also ask

Can I run Travis locally?

You should be able to run the tests locally without having to run Travis CI. Check out the "script" section of the . travis. yml to see what command to run.

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

You can specify a custom script: command to change directory and then build the project. You can place this in your .travis.yml to do this:

script:
  - cd <sub directory>
  - <build command>
like image 94
joshua-anderson Avatar answered Sep 20 '22 17:09

joshua-anderson