mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 09:16:08 +08:00
Fix Travis integration (#349)
This commit is contained in:
parent
7ed9fd6b4d
commit
6c373d89ec
|
@ -16,11 +16,6 @@ addons:
|
||||||
- libncurses5-dev
|
- libncurses5-dev
|
||||||
- tree
|
- tree
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- OMF_REPO_URI="https://github.com/$TRAVIS_REPO_SLUG"
|
|
||||||
- OMF_REPO_BRANCH="$TRAVIS_BRANCH"
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- source tools/travis-github-pr-integration.sh
|
- source tools/travis-github-pr-integration.sh
|
||||||
- tools/travis-install-fish.sh
|
- tools/travis-install-fish.sh
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# Return if we are not in a Pull Request
|
# 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_URL=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
|
||||||
GITHUB_PR_BODY=$(curl -s $GITHUB_PR_URL 2>/dev/null)
|
GITHUB_PR_BODY=$(curl -s $GITHUB_PR_URL 2>/dev/null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user