Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | build-linux-arm) | ||||
# Build all the targets that are not built as part of the default target | # Build all the targets that are not built as part of the default target | ||||
ninja test_bitcoin test_bitcoin-qt test_bitcoin-seeder | ninja test_bitcoin test_bitcoin-qt test_bitcoin-seeder | ||||
;; | ;; | ||||
build-linux-aarch64) | build-linux-aarch64) | ||||
"${DEVTOOLS_DIR}"/build_depends.sh | "${DEVTOOLS_DIR}"/build_depends.sh | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/LinuxAArch64.cmake" | "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/LinuxAArch64.cmake" | ||||
# This will prepend our executable commands with the given emulator call | |||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-aarch64-static)" | |||||
# The ZMQ functional test will fail with qemu (due to a qemu limitation), | |||||
# so disable it to avoid the failure. | |||||
# Extracted from stderr: | |||||
# Unknown host QEMU_IFLA type: 50 | |||||
# Unknown host QEMU_IFLA type: 51 | |||||
# Unknown QEMU_IFLA_BRPORT type 33 | |||||
"-DBUILD_BITCOIN_ZMQ=OFF" | |||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | ||||
# Build all the targets that are not built as part of the default target | # Let qemu know where to find the system libraries | ||||
ninja test_bitcoin test_bitcoin-qt test_bitcoin-seeder | export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu | ||||
# Unit tests | |||||
ninja check | |||||
ninja check-secp256k1 | |||||
# Functional tests | |||||
ninja check-functional | |||||
;; | ;; | ||||
build-linux64) | build-linux64) | ||||
"${DEVTOOLS_DIR}"/build_depends.sh | "${DEVTOOLS_DIR}"/build_depends.sh | ||||
# Build, run unit tests and functional tests. | # Build, run unit tests and functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/Linux64.cmake" | "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/Linux64.cmake" | ||||
Show All 32 Lines |