File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -594,15 +594,13 @@ before_install: |
594
594
brew_cache_cleanup
595
595
fi
596
596
597
- before_install
598
597
# Not interested in travis internal scripts' output
599
598
set +x
600
599
601
600
install : |
602
601
# Build and package
603
602
set -x
604
603
build_wheel $REPO_DIR $PLAT
605
- if [ -n "$USE_CCACHE" ]; then ccache --show-stats; fi
606
604
set +x
607
605
608
606
script : |
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ function bdist_wheel_cmd {
16
16
local abs_wheelhouse=$1
17
17
python setup.py bdist_wheel $BDIST_PARAMS
18
18
cp dist/* .whl $abs_wheelhouse
19
+ if [ -n " $USE_CCACHE " -a -z " $BREW_BOOTSTRAP_MODE " ]; then ccache --show-stats; fi
19
20
}
20
21
21
22
if [ -n " $IS_OSX " ]; then
@@ -99,7 +100,7 @@ function pre_build {
99
100
# this takes several seconds and we don't need it
100
101
# see https://docs.brew.sh/Manpage , "info formula" section
101
102
export HOMEBREW_NO_GITHUB_API=1
102
-
103
+
103
104
echo ' Installing QT4'
104
105
brew tap | grep -qxF cartr/qt4 || brew tap cartr/qt4
105
106
brew tap --list-pinned | grep -qxF cartr/qt4 || brew tap-pin cartr/qt4
@@ -108,8 +109,13 @@ function pre_build {
108
109
echo ' Installing FFmpeg'
109
110
110
111
generate_ffmpeg_formula
111
- brew_install_and_cache_within_time_limit ffmpeg_opencv || { [ $? -gt 1 ] && return 2 || return 0; }
112
-
112
+ local IS_BOTTLE_AVAILABLE; _brew_is_bottle_available ffmpeg_opencv && IS_BOTTLE_AVAILABLE=1 || IS_BOTTLE_AVAILABLE=0
113
+ _brew_install_and_cache ffmpeg_opencv " $IS_BOTTLE_AVAILABLE "
114
+ # brew_install_and_cache_within_time_limit ffmpeg_opencv || { [ $? -gt 1 ] && return 2 || return 0; }
115
+
116
+ # Have to install macpython late to avoid conflict with Homebrew Python update
117
+ before_install
118
+
113
119
else
114
120
echo " Running for linux"
115
121
fi
Original file line number Diff line number Diff line change @@ -215,6 +215,8 @@ function brew_go_bootstrap_mode {
215
215
# Terminate the build but ensure saving the cache
216
216
217
217
echo " Going into cache bootstrap mode"
218
+
219
+ BREW_BOOTSTRAP_MODE=1
218
220
219
221
# Can't just `exit` because that would terminate the build without saving the cache
220
222
# Have to replace further actions with no-ops
You can’t perform that action at this time.
0 commit comments