mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
ci: Use Homebrew addon on native macOS
Also the macOS image has been updated.
This commit is contained in:
parent
596c627a1e
commit
25c8b73656
3 changed files with 14 additions and 22 deletions
16
.travis.yml
16
.travis.yml
|
@ -153,8 +153,20 @@ jobs:
|
||||||
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
|
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
|
||||||
os: osx
|
os: osx
|
||||||
# Use the most recent version:
|
# Use the most recent version:
|
||||||
# Xcode 11.2.1, macOS 10.14, JDK 13.0.1, SDK 10.15
|
# Xcode 11.3.1, macOS 10.14, SDK 10.15
|
||||||
# https://docs.travis-ci.com/user/reference/osx/#macos-version
|
# https://docs.travis-ci.com/user/reference/osx/#macos-version
|
||||||
osx_image: xcode11.2
|
osx_image: xcode11.3
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- libtool
|
||||||
|
- berkeley-db4
|
||||||
|
- boost
|
||||||
|
- miniupnpc
|
||||||
|
- qt
|
||||||
|
- qrencode
|
||||||
|
- python3
|
||||||
|
- ccache
|
||||||
|
- zeromq
|
||||||
env: >-
|
env: >-
|
||||||
FILE_ENV="./ci/test/00_setup_env_mac_host.sh"
|
FILE_ENV="./ci/test/00_setup_env_mac_host.sh"
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
export HOST=x86_64-apple-darwin16
|
export HOST=x86_64-apple-darwin16
|
||||||
export BREW_PACKAGES="automake berkeley-db4 libtool boost miniupnpc pkg-config qt qrencode python3 ccache zeromq"
|
|
||||||
export PIP_PACKAGES="zmq"
|
export PIP_PACKAGES="zmq"
|
||||||
export RUN_CI_ON_HOST=true
|
export RUN_CI_ON_HOST=true
|
||||||
export RUN_UNIT_TESTS=true
|
export RUN_UNIT_TESTS=true
|
||||||
|
|
|
@ -14,27 +14,8 @@ if [[ $QEMU_USER_CMD == qemu-s390* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
||||||
set +o errexit
|
|
||||||
pushd /usr/local/Homebrew || exit 1
|
|
||||||
git reset --hard origin/master
|
|
||||||
popd || exit 1
|
|
||||||
set -o errexit
|
|
||||||
${CI_RETRY_EXE} brew update
|
|
||||||
# brew upgrade returns an error if any of the packages is already up to date
|
|
||||||
# Failure is safe to ignore, unless we really need an update.
|
|
||||||
brew upgrade $BREW_PACKAGES || true
|
|
||||||
|
|
||||||
# install new packages (brew install returns an error if already installed)
|
|
||||||
for i in $BREW_PACKAGES; do
|
|
||||||
if ! brew list | grep -q $i; then
|
|
||||||
${CI_RETRY_EXE} brew install $i
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
||||||
|
|
||||||
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
|
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "${BASE_SCRATCH_DIR}"
|
mkdir -p "${BASE_SCRATCH_DIR}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue