Obtain the current branch name from the Git repository. If on Travis CI, use the TRAVIS_BRANCH environment variable.
TRAVIS_BRANCH