Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Lines | CMAKE_FLAGS=( | ||||
"-DBUILD_BITCOIN_SEEDER=OFF" | "-DBUILD_BITCOIN_SEEDER=OFF" | ||||
"-DCPACK_STRIP_FILES=ON" | "-DCPACK_STRIP_FILES=ON" | ||||
) | ) | ||||
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 | ninja test_bitcoin test_bitcoin-qt | ||||
# Print the wine version, might be useful for debugging | ninja package | ||||
wine --version | |||||
# Running the tests with wine and jemalloc is causing deadlocks, so disable | |||||
# jemalloc prior running the tests. | |||||
# FIXME figure out what is causing the deadlock. Example output: | |||||
# 01fe:err:ntdll:RtlpWaitForCriticalSection section 0x39e081b0 "?" wait | |||||
# timed out in thread 01fe, blocked by 01cd, retrying (60 sec) | |||||
CMAKE_FLAGS+=( | |||||
"-DUSE_JEMALLOC=OFF" | |||||
) | |||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh test_bitcoin | |||||
# Run the tests. Not all will run with wine, so exclude them | # Run the tests. Not all will run with wine, so exclude them | ||||
find src -name "libbitcoinconsensus*.dll" -exec cp {} src/test/ \; | find src -name "libbitcoinconsensus*.dll" -exec cp {} src/test/ \; | ||||
wine ./src/test/test_bitcoin.exe --run_test=\!radix_tests,rcu_tests | wine ./src/test/test_bitcoin.exe --run_test=\!radix_tests,rcu_tests | ||||
ninja package | |||||
;; | ;; | ||||
build-osx) | build-osx) | ||||
export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin16/native/lib/python3/dist-packages:${PYTHONPATH:-}" | export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin16/native/lib/python3/dist-packages:${PYTHONPATH:-}" | ||||
"${DEVTOOLS_DIR}"/build_depends.sh | "${DEVTOOLS_DIR}"/build_depends.sh | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/OSX.cmake" | "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/OSX.cmake" | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |