Skip to content

Commit a84cc17

Browse files
committed
move brew update to .travis.yml
1 parent 54110e3 commit a84cc17

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cache:
3333
- $HOME/local_bottle_metadata
3434
# `cache: ccache: true` has no effect if `language:` is not `c` or `cpp`
3535
- $HOME/.ccache
36-
36+
3737
matrix:
3838
fast_finish: true
3939
include:
@@ -618,8 +618,9 @@ before_install: |
618618
source multibuild_customize.sh
619619
echo $ENABLE_CONTRIB > contrib.enabled
620620
echo $ENABLE_HEADLESS > headless.enabled
621-
621+
622622
if [ -n "$IS_OSX" ]; then
623+
brew update --merge
623624
TAPS="$(brew --repository)/Library/Taps"
624625
if [ -e "$TAPS/caskroom/homebrew-cask" -a -e "$TAPS/homebrew/homebrew-cask" ]; then
625626
rm -rf "$TAPS/caskroom/homebrew-cask"
@@ -629,10 +630,10 @@ before_install: |
629630
cd $(dirname '\''{}'\'')
630631
git clean -fxd
631632
git status' \;
632-
633+
633634
brew_cache_cleanup
634635
fi
635-
636+
636637
before_install
637638
# Not interested in travis internal scripts' output
638639
set +x
@@ -653,7 +654,7 @@ script: |
653654
#otherwise, Travis logic terminates prematurely
654655
#https://travis-ci.community/t/shell-session-update-command-not-found-in-build-log-causes-build-to-fail-if-trap-err-is-set/817
655656
trap ERR
656-
657+
657658
test "$rc" -eq 0
658659
659660
before_cache: |
@@ -667,10 +668,10 @@ before_cache: |
667668
fi
668669
669670
brew_cache_cleanup
670-
671+
671672
fi
672673
set +x
673-
674+
674675
after_success: |
675676
# Upload wheels to pypi if requested
676677
if [ -n "$TRAVIS_TAG" ]; then

config.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ function pre_build {
9292
if [ -n "$IS_OSX" ]; then
9393
echo "Running for OSX"
9494

95-
brew update --force
9695
brew_add_local_bottles
9796

9897
# Don't query analytical info online on `brew info`,

0 commit comments

Comments
 (0)