Commit 7180eb53 authored by xoviat's avatar xoviat
Browse files

Travis-CI OSX reliability improvements

parent 65b49f49
...@@ -6,10 +6,6 @@ cache: ...@@ -6,10 +6,6 @@ cache:
directories: directories:
- $HOME/.ccache - $HOME/.ccache
env:
global:
- HOMEBREW_NO_AUTO_UPDATE=1
matrix: matrix:
include: include:
- os: linux - os: linux
......
...@@ -22,6 +22,9 @@ if [ -n "$IS_OSX" ]; then ...@@ -22,6 +22,9 @@ if [ -n "$IS_OSX" ]; then
export CFLAGS="${CFLAGS:-$ARCH_FLAGS}" export CFLAGS="${CFLAGS:-$ARCH_FLAGS}"
export CXXFLAGS="${CXXFLAGS:-$ARCH_FLAGS}" export CXXFLAGS="${CXXFLAGS:-$ARCH_FLAGS}"
export FFLAGS="${FFLAGS:-$ARCH_FLAGS}" export FFLAGS="${FFLAGS:-$ARCH_FLAGS}"
# Disable homebrew auto-update
export HOMEBREW_NO_AUTO_UPDATE=1
fi fi
# Promote BUILD_PREFIX on search path to any newly built libs # Promote BUILD_PREFIX on search path to any newly built libs
......
...@@ -281,9 +281,6 @@ function get_macpython_environment { ...@@ -281,9 +281,6 @@ function get_macpython_environment {
local version=$1 local version=$1
local venv_dir=$2 local venv_dir=$2
# We MUST set this before calling homebrew or it could potentially fail
# See travis-ci issue #8552 for more details
export HOMEBREW_NO_AUTO_UPDATE=1
if [ "$USE_CCACHE" == "1" ]; then if [ "$USE_CCACHE" == "1" ]; then
activate_ccache activate_ccache
......
...@@ -18,6 +18,8 @@ source $MULTIBUILD_DIR/library_builders.sh ...@@ -18,6 +18,8 @@ source $MULTIBUILD_DIR/library_builders.sh
# config.sh can override any function defined here. # config.sh can override any function defined here.
function before_install { function before_install {
# Uninstall oclint. See Travis-CI gh-8826
brew cask uninstall oclint || true
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
get_macpython_environment $MB_PYTHON_VERSION venv get_macpython_environment $MB_PYTHON_VERSION venv
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment