Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | CMAKE_FLAGS=( | ||||
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/LinuxAArch64.cmake" | "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/LinuxAArch64.cmake" | ||||
) | ) | ||||
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 | # 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-linux64) | |||||
"${DEVTOOLS_DIR}"/build_depends.sh | |||||
# Build, run unit tests and functional tests. | |||||
CMAKE_FLAGS=( | |||||
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/Linux64.cmake" | |||||
"-DSECP256K1_ENABLE_MODULE_ECDH=ON" | |||||
"-DENABLE_PROPERTY_BASED_TESTS=ON" | |||||
) | |||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | |||||
# Unit tests | |||||
run_test_bitcoin "for Linux 64 bits" | |||||
ninja \ | |||||
check-bitcoin-qt \ | |||||
check-bitcoin-seeder \ | |||||
check-bitcoin-util \ | |||||
check-secp256k1 | |||||
# Functional tests | |||||
ninja check-functional | |||||
;; | |||||
check-seeds) | check-seeds) | ||||
"${DEVTOOLS_DIR}"/build_cmake.sh | "${DEVTOOLS_DIR}"/build_cmake.sh | ||||
# Run on different ports to avoid a race where the rpc port used in the | # Run on different ports to avoid a race where the rpc port used in the | ||||
# first run may not be closed in time for the second to start. | # first run may not be closed in time for the second to start. | ||||
SEEDS_DIR="${TOPLEVEL}"/contrib/seeds | SEEDS_DIR="${TOPLEVEL}"/contrib/seeds | ||||
RPC_PORT=18832 "${SEEDS_DIR}"/check-seeds.sh main 80 | RPC_PORT=18832 "${SEEDS_DIR}"/check-seeds.sh main 80 | ||||
RPC_PORT=18833 "${SEEDS_DIR}"/check-seeds.sh test 70 | RPC_PORT=18833 "${SEEDS_DIR}"/check-seeds.sh test 70 | ||||
;; | ;; | ||||
*) | *) | ||||
echo "Error: Invalid build name '${ABC_BUILD_NAME}'" | echo "Error: Invalid build name '${ABC_BUILD_NAME}'" | ||||
exit 2 | exit 2 | ||||
;; | ;; | ||||
esac | esac |