mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
ci: Run macos ci config on cirrus
This commit is contained in:
parent
fa8b1114e6
commit
3333d6942e
4 changed files with 16 additions and 27 deletions
16
.cirrus.yml
16
.cirrus.yml
|
@ -8,7 +8,7 @@ container:
|
||||||
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
|
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
|
||||||
kvm: true # Use kvm to avoid spurious CI failures in the default virtualization cluster, see https://github.com/bitcoin/bitcoin/issues/20093
|
kvm: true # Use kvm to avoid spurious CI failures in the default virtualization cluster, see https://github.com/bitcoin/bitcoin/issues/20093
|
||||||
env:
|
env:
|
||||||
PACKAGE_MANAGER_INSTALL : "apt-get update && apt-get install -y"
|
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
|
||||||
MAKEJOBS: "-j4"
|
MAKEJOBS: "-j4"
|
||||||
DANGER_RUN_CI_ON_HOST: "1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system
|
DANGER_RUN_CI_ON_HOST: "1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system
|
||||||
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
|
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
|
||||||
|
@ -127,3 +127,17 @@ task:
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
env:
|
env:
|
||||||
FILE_ENV: "./ci/test/00_setup_env_mac.sh"
|
FILE_ENV: "./ci/test/00_setup_env_mac.sh"
|
||||||
|
|
||||||
|
task:
|
||||||
|
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
|
||||||
|
macos_brew_addon_script:
|
||||||
|
- brew install boost libevent berkeley-db4 qt miniupnpc ccache zeromq qrencode sqlite libtool automake pkg-config gnu-getopt
|
||||||
|
<< : *GLOBAL_TASK_TEMPLATE
|
||||||
|
osx_instance:
|
||||||
|
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
|
||||||
|
image: catalina-xcode-12.1 # https://cirrus-ci.org/guide/macOS
|
||||||
|
env:
|
||||||
|
DANGER_RUN_CI_ON_HOST: "true"
|
||||||
|
CI_USE_APT_INSTALL: "no"
|
||||||
|
PACKAGE_MANAGER_INSTALL: "echo" # Nothing to do
|
||||||
|
FILE_ENV: "./ci/test/00_setup_env_mac_host.sh"
|
||||||
|
|
21
.travis.yml
21
.travis.yml
|
@ -79,24 +79,3 @@ jobs:
|
||||||
name: 'x86_64 Linux [GOAL: install] [xenial] [no wallet]'
|
name: 'x86_64 Linux [GOAL: install] [xenial] [no wallet]'
|
||||||
env: >-
|
env: >-
|
||||||
FILE_ENV="./ci/test/00_setup_env_native_nowallet.sh"
|
FILE_ENV="./ci/test/00_setup_env_native_nowallet.sh"
|
||||||
|
|
||||||
- stage: test
|
|
||||||
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
|
|
||||||
os: osx
|
|
||||||
# Use the most recent version:
|
|
||||||
# Xcode 11.3.1, macOS 10.14, SDK 10.15
|
|
||||||
# https://docs.travis-ci.com/user/reference/osx/#macos-version
|
|
||||||
osx_image: xcode11.3
|
|
||||||
addons:
|
|
||||||
homebrew:
|
|
||||||
packages:
|
|
||||||
- berkeley-db4
|
|
||||||
- miniupnpc
|
|
||||||
- qrencode
|
|
||||||
- sqlite
|
|
||||||
- ccache
|
|
||||||
- zeromq
|
|
||||||
env: >-
|
|
||||||
DANGER_RUN_CI_ON_HOST=true
|
|
||||||
CI_USE_APT_INSTALL=no
|
|
||||||
FILE_ENV="./ci/test/00_setup_env_mac_host.sh"
|
|
||||||
|
|
|
@ -16,7 +16,3 @@ export OSX_SDK=""
|
||||||
export CCACHE_SIZE=300M
|
export CCACHE_SIZE=300M
|
||||||
|
|
||||||
export RUN_SECURITY_TESTS="true"
|
export RUN_SECURITY_TESTS="true"
|
||||||
if [ "$TRAVIS_REPO_SLUG" != "bitcoin/bitcoin" ]; then
|
|
||||||
export RUN_FUNCTIONAL_TESTS="false"
|
|
||||||
export EXPECTED_TESTS_DURATION_IN_SECONDS=200
|
|
||||||
fi
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ if [[ $QEMU_USER_CMD == qemu-s390* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CI_OS_NAME" == "macos" ]; then
|
if [ "$CI_OS_NAME" == "macos" ]; then
|
||||||
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
|
IN_GETOPT_BIN="/usr/local/opt/gnu-getopt/bin/getopt" ${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create folders that are mounted into the docker
|
# Create folders that are mounted into the docker
|
||||||
|
|
Loading…
Add table
Reference in a new issue