Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
CI_SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | CI_SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||||
DEVTOOLS_DIR="${TOPLEVEL}"/contrib/devtools | DEVTOOLS_DIR="${TOPLEVEL}"/contrib/devtools | ||||
build_with_cmake() { | build_with_cmake() { | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh "$@" | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh "$@" | ||||
} | } | ||||
build_with_autotools() { | |||||
CONFIGURE_FLAGS="${CONFIGURE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_autotools.sh "$@" | |||||
} | |||||
setup | setup | ||||
case "$ABC_BUILD_NAME" in | case "$ABC_BUILD_NAME" in | ||||
build-asan) | build-asan) | ||||
# Build with the address sanitizer, then run unit tests and functional tests. | # Build with the address sanitizer, then run unit tests and functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_CXX_FLAGS=-DARENA_DEBUG" | "-DCMAKE_CXX_FLAGS=-DARENA_DEBUG" | ||||
"-DCMAKE_BUILD_TYPE=Debug" | "-DCMAKE_BUILD_TYPE=Debug" | ||||
▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | ninja \ | ||||
secp256k1-tests \ | secp256k1-tests \ | ||||
secp256k1-exhaustive_tests | secp256k1-exhaustive_tests | ||||
# TODO do the same with the latest GCC | # TODO do the same with the latest GCC | ||||
;; | ;; | ||||
build-autotools) | build-autotools) | ||||
# Ensure that the build using autotools is not broken | # Ensure that the build using autotools is not broken | ||||
"${DEVTOOLS_DIR}"/build_autotools.sh check | build_with_autotools check | ||||
;; | ;; | ||||
build-bench) | build-bench) | ||||
# Build and run the benchmarks. | # Build and run the benchmarks. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DBUILD_BITCOIN_WALLET=ON" | "-DBUILD_BITCOIN_WALLET=ON" | ||||
"-DSECP256K1_ENABLE_MODULE_ECDH=ON" | "-DSECP256K1_ENABLE_MODULE_ECDH=ON" | ||||
"-DSECP256K1_ENABLE_MODULE_MULTISET=ON" | "-DSECP256K1_ENABLE_MODULE_MULTISET=ON" | ||||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |