When working with the .travis.yml, is there an environment variable that contains the name of the current build directory in Travis-CI? Looking through the docs here I don't see one.
2. Yes, sorry, my answer may not have been totally clear on that: $TRAVIS_BUILD_DIR is the directory that contains your checked-out code (i.e. $TRAVIS_BUILD_DIR/. git exists), and is the working directory when your commands start 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 probably want $TRAVIS_BUILD_DIR
, which is the directory we clone the repository to and cd
into afterwards, before running your tests.
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