Skip to content

Commit 3634d86

Browse files
authored
Merge pull request multi-build#139 from matthew-brett/osx-reliability
Osx reliability improvements
2 parents 65b49f4 + fc4012f commit 3634d86

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ cache:
66
directories:
77
- $HOME/.ccache
88

9-
env:
10-
global:
11-
- HOMEBREW_NO_AUTO_UPDATE=1
12-
139
matrix:
1410
include:
1511
- os: linux
@@ -27,11 +23,6 @@ matrix:
2723
- TEST_BUILDS=1
2824
- USE_CCACHE=1
2925
sudo: required
30-
- os: osx
31-
osx_image: xcode6.4
32-
env:
33-
- PYTHON_VERSION=2.7.11
34-
- TEST_BUILDS=1
3526
- os: osx
3627
osx_image: xcode6.4
3728
env:

configure_build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ if [ -n "$IS_OSX" ]; then
2222
export CFLAGS="${CFLAGS:-$ARCH_FLAGS}"
2323
export CXXFLAGS="${CXXFLAGS:-$ARCH_FLAGS}"
2424
export FFLAGS="${FFLAGS:-$ARCH_FLAGS}"
25+
26+
# Disable homebrew auto-update
27+
export HOMEBREW_NO_AUTO_UPDATE=1
2528
fi
2629

2730
# Promote BUILD_PREFIX on search path to any newly built libs

osx_utils.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ function get_macpython_environment {
281281
local version=$1
282282
local venv_dir=$2
283283

284-
# We MUST set this before calling homebrew or it could potentially fail
285-
# See travis-ci issue #8552 for more details
286-
export HOMEBREW_NO_AUTO_UPDATE=1
287284

288285
if [ "$USE_CCACHE" == "1" ]; then
289286
activate_ccache

travis_osx_steps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ source $MULTIBUILD_DIR/library_builders.sh
1818
# config.sh can override any function defined here.
1919

2020
function before_install {
21+
# Uninstall oclint. See Travis-CI gh-8826
22+
brew cask uninstall oclint || true
2123
export CC=clang
2224
export CXX=clang++
2325
get_macpython_environment $MB_PYTHON_VERSION venv

0 commit comments

Comments
 (0)