Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | CMAKE_FLAGS=( | ||||
"-DCMAKE_C_COMPILER=clang" | "-DCMAKE_C_COMPILER=clang" | ||||
"-DCMAKE_CXX_COMPILER=clang++" | "-DCMAKE_CXX_COMPILER=clang++" | ||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | ||||
ninja check | ninja check | ||||
./test/functional/test_runner.py ${TEST_RUNNER_FLAGS} | ./test/functional/test_runner.py ${TEST_RUNNER_FLAGS} | ||||
;; | ;; | ||||
build-default) | build-diff) | ||||
# Build, run unit tests and functional tests (all extended tests if this is the master branch). | # Build, run unit tests and functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DSECP256K1_ENABLE_MODULE_ECDH=ON" | "-DSECP256K1_ENABLE_MODULE_ECDH=ON" | ||||
"-DSECP256K1_ENABLE_JNI=ON" | "-DSECP256K1_ENABLE_JNI=ON" | ||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | ||||
ninja check check-secp256k1 | ninja check check-secp256k1 | ||||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |||||
if [[ "${BRANCH}" == "master" ]]; then | |||||
TEST_RUNNER_FLAGS="${TEST_RUNNER_FLAGS} --extended" | |||||
fi | |||||
./test/functional/test_runner.py ${TEST_RUNNER_FLAGS} | ./test/functional/test_runner.py ${TEST_RUNNER_FLAGS} | ||||
./test/functional/test_runner.py -J=junit_results_next_upgrade.xml --with-phononactivation ${TEST_RUNNER_FLAGS} | ./test/functional/test_runner.py -J=junit_results_next_upgrade.xml --with-phononactivation ${TEST_RUNNER_FLAGS} | ||||
;; | ;; | ||||
build-master) | |||||
# Build, run unit tests and extended functional tests. | |||||
CMAKE_FLAGS=( | |||||
"-DSECP256K1_ENABLE_MODULE_ECDH=ON" | |||||
"-DSECP256K1_ENABLE_JNI=ON" | |||||
) | |||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | |||||
ninja check check-secp256k1 | |||||
./test/functional/test_runner.py --extended ${TEST_RUNNER_FLAGS} | |||||
./test/functional/test_runner.py -J=junit_results_next_upgrade.xml --with-phononactivation --extended ${TEST_RUNNER_FLAGS} | |||||
;; | |||||
build-without-wallet) | build-without-wallet) | ||||
# Build without wallet and run the unit tests. | # Build without wallet and run the unit tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DBUILD_BITCOIN_WALLET=OFF" | "-DBUILD_BITCOIN_WALLET=OFF" | ||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | ||||
ninja check | ninja check | ||||
;; | ;; | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |