Skip to content

Commit 25c8b73

Browse files
committed
ci: Use Homebrew addon on native macOS
Also the macOS image has been updated.
1 parent 596c627 commit 25c8b73

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
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 & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +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 update
23-
# brew upgrade returns an error if any of the packages is already up to date
24-
# Failure is safe to ignore, unless we really need an update.
25-
brew upgrade $BREW_PACKAGES || true
26-
27-
# install new packages (brew install returns an error if already installed)
28-
for i in $BREW_PACKAGES; do
29-
if ! brew list | grep -q $i; then
30-
${CI_RETRY_EXE} brew install $i
31-
fi
32-
done
33-
3417
export PATH="/usr/local/opt/ccache/libexec:$PATH"
35-
3618
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
37-
3819
fi
3920

4021
mkdir -p "${BASE_SCRATCH_DIR}"

0 commit comments

Comments
 (0)