Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build.sh
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | if [[ -z "${DISABLE_TESTS}" ]]; then | ||||
# Run unit tests | # Run unit tests | ||||
make -j ${THREADS} check || (print_sanitizers_log && exit 1) | make -j ${THREADS} check || (print_sanitizers_log && exit 1) | ||||
# FIXME Remove when the functional tests are running with debug enabled | # FIXME Remove when the functional tests are running with debug enabled | ||||
if [[ -z "${ENABLE_DEBUG}" ]]; then | if [[ -z "${ENABLE_DEBUG}" ]]; then | ||||
mkdir -p output/ | mkdir -p output/ | ||||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||||
JUNIT_DEFAULT="junit_results_default.xml" | |||||
JUNIT_NEXT_UPGRADE="junit_results_next_upgrade.xml" | |||||
if [[ ! -z "${DISABLE_WALLET}" ]]; then | if [[ ! -z "${DISABLE_WALLET}" ]]; then | ||||
echo "Skipping rpc testing due to disabled wallet functionality." | echo "Skipping rpc testing due to disabled wallet functionality." | ||||
elif [[ "${BRANCH}" == "master" ]]; then | elif [[ "${BRANCH}" == "master" ]]; then | ||||
./test/functional/test_runner.py --cutoff=600 --tmpdirprefix=output | ./test/functional/test_runner.py -ju="${JUNIT_DEFAULT}" --cutoff=600 --tmpdirprefix=output | ||||
./test/functional/test_runner.py --cutoff=600 --tmpdirprefix=output --with-gravitonactivation | ./test/functional/test_runner.py -ju="${JUNIT_NEXT_UPGRADE}" --cutoff=600 --tmpdirprefix=output --with-gravitonactivation | ||||
else | else | ||||
./test/functional/test_runner.py --tmpdirprefix=output | ./test/functional/test_runner.py -ju="${JUNIT_DEFAULT}" --tmpdirprefix=output | ||||
./test/functional/test_runner.py --tmpdirprefix=output --with-gravitonactivation | ./test/functional/test_runner.py -ju="${JUNIT_NEXT_UPGRADE}" --tmpdirprefix=output --with-gravitonactivation | ||||
fi | fi | ||||
else | else | ||||
echo "*** Functional tests have been skipped" | echo "*** Functional tests have been skipped" | ||||
fi | fi | ||||
else | else | ||||
echo "*** Tests have been skipped" | echo "*** Tests have been skipped" | ||||
fi | fi | ||||