Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show All 10 Lines | |||||
fi | fi | ||||
echo "Running build configuration '${ABC_BUILD_NAME}'..." | echo "Running build configuration '${ABC_BUILD_NAME}'..." | ||||
TOPLEVEL=$(git rev-parse --show-toplevel) | TOPLEVEL=$(git rev-parse --show-toplevel) | ||||
export TOPLEVEL | export TOPLEVEL | ||||
setup() { | setup() { | ||||
export BUILD_DIR="${TOPLEVEL}/build" | : "${BUILD_DIR:=${TOPLEVEL}/build}" | ||||
mkdir -p "${BUILD_DIR}/output" | mkdir -p "${BUILD_DIR}/output" | ||||
BUILD_DIR=$(cd "${BUILD_DIR}"; pwd) | |||||
export BUILD_DIR | |||||
TEST_RUNNER_FLAGS="--tmpdirprefix=output" | TEST_RUNNER_FLAGS="--tmpdirprefix=output" | ||||
cd "${BUILD_DIR}" | cd "${BUILD_DIR}" | ||||
# Determine the number of build threads | # Determine the number of build threads | ||||
THREADS=$(nproc || sysctl -n hw.ncpu) | THREADS=$(nproc || sysctl -n hw.ncpu) | ||||
export THREADS | export THREADS | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | build-default) | ||||
if [[ "${BRANCH}" == "master" ]]; then | if [[ "${BRANCH}" == "master" ]]; then | ||||
TEST_RUNNER_FLAGS="${TEST_RUNNER_FLAGS} --cutoff=600" | TEST_RUNNER_FLAGS="${TEST_RUNNER_FLAGS} --cutoff=600" | ||||
fi | fi | ||||
./test/functional/test_runner.py -J=junit_results_default.xml ${TEST_RUNNER_FLAGS} | ./test/functional/test_runner.py -J=junit_results_default.xml ${TEST_RUNNER_FLAGS} | ||||
./test/functional/test_runner.py -J=junit_results_next_upgrade.xml --with-gravitonactivation ${TEST_RUNNER_FLAGS} | ./test/functional/test_runner.py -J=junit_results_next_upgrade.xml --with-gravitonactivation ${TEST_RUNNER_FLAGS} | ||||
# Build secp256k1 and run the java tests. | # Build secp256k1 and run the java tests. | ||||
export TOPLEVEL="${TOPLEVEL}"/src/secp256k1 | export TOPLEVEL="${TOPLEVEL}"/src/secp256k1 | ||||
export BUILD_DIR="${TOPLEVEL}"/build | |||||
setup | setup | ||||
CONFIGURE_FLAGS="--enable-jni --enable-experimental --enable-module-ecdh" "${CI_SCRIPTS_DIR}"/build.sh | CONFIGURE_FLAGS="--enable-jni --enable-experimental --enable-module-ecdh" "${CI_SCRIPTS_DIR}"/build.sh | ||||
make -j "${THREADS}" check-java | make -j "${THREADS}" check-java | ||||
;; | ;; | ||||
build-without-wallet) | build-without-wallet) | ||||
# Build without wallet and run the unit tests. | # Build without wallet and run the unit tests. | ||||
CONFIGURE_FLAGS="--disable-wallet" "${CI_SCRIPTS_DIR}"/build.sh | CONFIGURE_FLAGS="--disable-wallet" "${CI_SCRIPTS_DIR}"/build.sh | ||||
Show All 18 Lines |