Skip to content

Instantly share code, notes, and snippets.

@famousgarkin
Last active May 22, 2017 11:16
Show Gist options
  • Save famousgarkin/8df61982f85bb51a697067bf82c18d63 to your computer and use it in GitHub Desktop.
Save famousgarkin/8df61982f85bb51a697067bf82c18d63 to your computer and use it in GitHub Desktop.
Travis CI workaround for $TRAVIS_BRANCH contains target branch on PR, not source branch
# NOTE: $TRAVIS_BRANCH contains target branch on PR, not source branch
# ref https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
export MY_TRAVIS_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment