In the TravisCI webapp, I've specified an environment variable called "BUILD_BRANCH". I would like to use this variable in the .travis.yml branch declaration, but TravisCI is reading it as a literal string "$BUILD_BRANCH".
I've looked for examples and references of this type of usage online and couldn't find any. I've also emailed them for support but they haven't gotten back to me yet.
branches:
only:
- $BUILD_BRANCH
I've tried both "$BUILD_BRANCH" and "${BUILD_BRANCH}".