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?
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.
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.
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>
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