travis: use TRAVIS_REPO_SLUG instead of hard coding tap name

master
Xu Cheng 2016-04-02 23:09:26 +08:00
parent 93f1b8ba74
commit 4c0baebdcf
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ before_install:
- git -C "$(brew --repo)" reset --hard origin/master
- git -C "$(brew --repo)" clean -qxdff
- brew update
- rsync -az "$TRAVIS_BUILD_DIR" "$(brew --repo homebrew/core)"
- export TRAVIS_BUILD_DIR="$(brew --repo homebrew/core)"
- cd "$(brew --repo homebrew/core)"
- rsync -az "$TRAVIS_BUILD_DIR" "$(brew --repo $TRAVIS_REPO_SLUG)"
- export TRAVIS_BUILD_DIR="$(brew --repo $TRAVIS_REPO_SLUG)"
- cd "$(brew --repo $TRAVIS_REPO_SLUG)"
- env | grep TRAVIS_
install: