mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge #18438: ci: Use Homebrew addon on native macOS
25c8b73656c90f7b78a90f25c5bcc308f8b7c598 ci: Use Homebrew addon on native macOS (Hennadii Stepanov) 596c627a1eb2b32e2755ae5b9bf32235cf8ce72b 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
This commit is contained in:
parent
cd16cf96a4
commit
548d63e9e6
16
.travis.yml
16
.travis.yml
@ -259,8 +259,20 @@ after_success:
|
|||||||
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, macOS 10.14, JDK 12.0.1
|
# 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
|
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"
|
||||||
|
@ -8,7 +8,6 @@ export LC_ALL=C.UTF-8
|
|||||||
|
|
||||||
export CONTAINER_NAME=ci_macos
|
export CONTAINER_NAME=ci_macos
|
||||||
export HOST=x86_64-apple-darwin19
|
export HOST=x86_64-apple-darwin19
|
||||||
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,30 +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 unlink python@2
|
|
||||||
${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"
|
||||||
OPENSSL_PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
|
||||||
export PKG_CONFIG_PATH=$OPENSSL_PKG_CONFIG_PATH:$PKG_CONFIG_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…
Reference in New Issue
Block a user