Fix Travis integration (#349)

This commit is contained in:
Stephen M. Coakley 2016-06-15 12:47:39 -05:00 committed by GitHub
parent 7ed9fd6b4d
commit 6c373d89ec
2 changed files with 5 additions and 6 deletions

View File

@ -16,11 +16,6 @@ addons:
- libncurses5-dev
- tree
env:
global:
- OMF_REPO_URI="https://github.com/$TRAVIS_REPO_SLUG"
- OMF_REPO_BRANCH="$TRAVIS_BRANCH"
before_install:
- source tools/travis-github-pr-integration.sh
- tools/travis-install-fish.sh

View File

@ -1,5 +1,9 @@
# Return if we are not in a Pull Request
[[ "$TRAVIS_PULL_REQUEST" = "false" ]] && return
if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then
export OMF_REPO_URI="https://github.com/$TRAVIS_REPO_SLUG"
export OMF_REPO_BRANCH="$TRAVIS_BRANCH"
return
fi
GITHUB_PR_URL=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
GITHUB_PR_BODY=$(curl -s $GITHUB_PR_URL 2>/dev/null)