tap-new: use latest Travis CI recommended config.

Pretty sure no-one cares about this except me but this works
consistently across a variety of different taps and is faster than the
old version.
This commit is contained in:
Mike McQuaid 2016-12-03 13:47:52 +00:00
parent bc9d3afd6e
commit 0d8fc920d6

View File

@ -55,14 +55,13 @@ module Homebrew
- if [ -f ".git/shallow" ]; then - if [ -f ".git/shallow" ]; then
travis_retry git fetch --unshallow; travis_retry git fetch --unshallow;
fi fi
- sudo chown -R $USER "$(brew --repo)" - HOMEBREW_REPOSITORY="$(brew --repo)"
- git -C "$(brew --repo)" reset --hard origin/master - sudo chown -R "$USER" "$HOMEBREW_REPOSITORY"
- git -C "$HOMEBREW_REPOSITORY" reset --hard origin/master
- brew update || brew update - brew update || brew update
- rm -rf "$(brew --repo $TRAVIS_REPO_SLUG)" - HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
- mkdir -p "$(brew --repo $TRAVIS_REPO_SLUG)" - rm -rf "$HOMEBREW_TAP_DIR"
- rsync -az "$TRAVIS_BUILD_DIR/" "$(brew --repo $TRAVIS_REPO_SLUG)" - ln -s "$PWD" "$HOMEBREW_TAP_DIR"
- export TRAVIS_BUILD_DIR="$(brew --repo $TRAVIS_REPO_SLUG)"
- cd "$(brew --repo)"
- export HOMEBREW_DEVELOPER="1" - export HOMEBREW_DEVELOPER="1"
- ulimit -n 1024 - ulimit -n 1024