diff --git a/.travis.yml b/.travis.yml index 59609ea..cfcf6d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,6 @@ jobs: - language: objective-c os: osx osx_image: xcode9.2 - addons: - homebrew: - packages: - - python - update: true - language: minimal dist: xenial os: linux diff --git a/travis/macos-install.sh b/travis/macos-install.sh index f7b55ac..8d358c4 100755 --- a/travis/macos-install.sh +++ b/travis/macos-install.sh @@ -2,6 +2,15 @@ set -ex +export HOMEBREW_NO_INSTALL_CLEANUP=1 +brew update + +# An error occurs when upgrading Python, but appears to be benign, hence the "|| true" +# +# Error: undefined method `any?' for nil:NilClass +# /usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:227:in `depends_on' +brew upgrade python || true + which python3 python3 --version which pip3