Skip to content

Commit f3a91ab

Browse files
author
MarcoFalke
committed
Merge #18438: ci: Use Homebrew addon on native macOS
25c8b73 ci: Use Homebrew addon on native macOS (Hennadii Stepanov) 596c627 ci: Fix brew in Travis (Hennadii Stepanov) Pull request description: Recently almost every macOS image update on Travis breaks our builds: - #17848 - #18436 This PR: - fixes the error caused by the recent [update](https://changelog.travis-ci.com/xcode-11-3-1-xcode-11-2-1-xcode-11-1-and-xcode11-images-updated-142286) from 10.14.4 (18E226) to 10.14.6 (18G3020) on March 25 - leverages [Homebrew addon](https://config.travis-ci.com/ref/job/addons/homebrew) to install packages Homebrew is not told to install `automake` and `pkg-config` packages, as the [docs](https://docs.travis-ci.com/user/reference/osx/#compilers-and-build-toolchain) states that they are pre-installed: > - automake 1.16.1 > - pkg-config 0.29.2 Top commit has no ACKs. Tree-SHA512: 1a70c06468fbe162503081b03dcf54614d67abf8ff0ce07d118b5bb50bbb92c182a76f769bea586c691aa82b9281a29cdef88091acc16895817a2e7cddafec6e
2 parents e99ca78 + 25c8b73 commit f3a91ab

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,20 @@ jobs:
153153
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
154154
os: osx
155155
# Use the most recent version:
156-
# Xcode 11.2.1, macOS 10.14, JDK 13.0.1, SDK 10.15
156+
# Xcode 11.3.1, macOS 10.14, SDK 10.15
157157
# https://docs.travis-ci.com/user/reference/osx/#macos-version
158-
osx_image: xcode11.2
158+
osx_image: xcode11.3
159+
addons:
160+
homebrew:
161+
packages:
162+
- libtool
163+
- berkeley-db4
164+
- boost
165+
- miniupnpc
166+
- qt
167+
- qrencode
168+
- python3
169+
- ccache
170+
- zeromq
159171
env: >-
160172
FILE_ENV="./ci/test/00_setup_env_mac_host.sh"

ci/test/00_setup_env_mac_host.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
export LC_ALL=C.UTF-8
88

99
export HOST=x86_64-apple-darwin16
10-
export BREW_PACKAGES="automake berkeley-db4 libtool boost miniupnpc pkg-config qt qrencode python3 ccache zeromq"
1110
export PIP_PACKAGES="zmq"
1211
export RUN_CI_ON_HOST=true
1312
export RUN_UNIT_TESTS=true

ci/test/04_install.sh

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,8 @@ if [[ $QEMU_USER_CMD == qemu-s390* ]]; then
1414
fi
1515

1616
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
17-
set +o errexit
18-
pushd /usr/local/Homebrew || exit 1
19-
git reset --hard origin/master
20-
popd || exit 1
21-
set -o errexit
22-
${CI_RETRY_EXE} brew unlink python@2
23-
${CI_RETRY_EXE} brew update
24-
# brew upgrade returns an error if any of the packages is already up to date
25-
# Failure is safe to ignore, unless we really need an update.
26-
brew upgrade $BREW_PACKAGES || true
27-
28-
# install new packages (brew install returns an error if already installed)
29-
for i in $BREW_PACKAGES; do
30-
if ! brew list | grep -q $i; then
31-
${CI_RETRY_EXE} brew install $i
32-
fi
33-
done
34-
3517
export PATH="/usr/local/opt/ccache/libexec:$PATH"
36-
3718
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
38-
3919
fi
4020

4121
mkdir -p "${BASE_SCRATCH_DIR}"

0 commit comments

Comments
 (0)