Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build.sh
Show All 26 Lines | |||||
CONFIGURE_FLAGS=("--prefix=`pwd`") | CONFIGURE_FLAGS=("--prefix=`pwd`") | ||||
if [[ ! -z "${DISABLE_WALLET}" ]]; then | if [[ ! -z "${DISABLE_WALLET}" ]]; then | ||||
echo "*** Building without wallet" | echo "*** Building without wallet" | ||||
CONFIGURE_FLAGS+=("--disable-wallet") | CONFIGURE_FLAGS+=("--disable-wallet") | ||||
fi | fi | ||||
../configure "${CONFIGURE_FLAGS[@]}" | ../configure "${CONFIGURE_FLAGS[@]}" | ||||
make -j ${THREADS} | make -j ${THREADS} | ||||
make -C src/secp256k1 | |||||
make -C src/univalue | |||||
make -C src/leveldb | |||||
make install | make install | ||||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||||
# Run tests | # Run tests | ||||
./src/test/test_bitcoin --log_format=JUNIT > test_bitcoin.xml | ./src/test/test_bitcoin --log_format=JUNIT > test_bitcoin.xml | ||||
./src/qt/test/test_bitcoin-qt | |||||
echo "secp256k1 tests: " | |||||
./src/secp256k1/tests | |||||
./src/secp256k1/exhaustive_tests | |||||
echo "pass" | |||||
# Need to CD where the data files for the univalue tests live. | |||||
pushd ${TOPLEVEL}/src/univalue/test | |||||
echo "Univalue tests: " | |||||
${BUILD_DIR}/src/univalue/test/object | |||||
${BUILD_DIR}/src/univalue/test/unitester | |||||
${BUILD_DIR}/src/univalue/test/no_nul | |||||
echo "pass" | |||||
popd | |||||
# Run leveldb tests | |||||
pushd ${TOPLEVEL}/src/leveldb | |||||
echo "Leveldb tests: " | |||||
make check | |||||
echo "pass" | |||||
popd | |||||
./test/util/bitcoin-util-test.py | |||||
mkdir -p output/ | mkdir -p output/ | ||||
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 --extended --jobs=${THREADS} --tmpdirprefix=output | ./test/functional/test_runner.py --extended --jobs=${THREADS} --tmpdirprefix=output | ||||
else | else | ||||
./test/functional/test_runner.py --jobs=${THREADS} --tmpdirprefix=output | ./test/functional/test_runner.py --jobs=${THREADS} --tmpdirprefix=output | ||||
fi | fi | ||||