How do I get Travis' build working directory in .travis.yml?

emmby picture emmby · Dec 22, 2012 · Viewed 20.4k times · Source

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.

Answer

sarahhodne picture sarahhodne · Jul 16, 2013

You probably want $TRAVIS_BUILD_DIR, which is the directory we clone the repository to and cd into afterwards, before running your tests.