00_setup_env_native_previous_releases.sh raw
1 #!/usr/bin/env bash
2 #
3 # Copyright (c) 2019-present The Bitcoin Core developers
4 # Distributed under the MIT software license, see the accompanying
5 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
7 export LC_ALL=C.UTF-8
8
9 export CONTAINER_NAME=ci_native_previous_releases
10 export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:22.04"
11 # Use minimum supported python3.10 and gcc-12, see doc/dependencies.md
12 export PACKAGES="gcc-12 g++-12 python3-zmq"
13 export DEP_OPTS="CC=gcc-12 CXX=g++-12"
14 export TEST_RUNNER_EXTRA="--previous-releases --coverage --extended --exclude feature_dbcrash" # Run extended tests so that coverage does not fail, but exclude the very slow dbcrash
15 export GOAL="install"
16 export CI_LIMIT_STACK_SIZE=1
17 export DOWNLOAD_PREVIOUS_RELEASES=true
18 # Use -Werror as the CMake version does not support CMAKE_COMPILE_WARNING_AS_ERROR
19 export BITCOIN_CONFIG="\
20 --preset=dev-mode \
21 -DREDUCE_EXPORTS=ON \
22 -DCMAKE_BUILD_TYPE=Debug \
23 -DCMAKE_C_FLAGS='-funsigned-char -Werror' \
24 -DCMAKE_C_FLAGS_DEBUG='-g2 -O2' \
25 -DCMAKE_CXX_FLAGS='-funsigned-char -Werror' \
26 -DCMAKE_CXX_FLAGS_DEBUG='-g2 -O2' \
27 -DAPPEND_CPPFLAGS='-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE' \
28 "
29