mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
24fee30513
* Add .gitlab-ci.yml * Use | instead of > for multiline commands This honor new-lines and makes ; unnecessary * Use ubuntu:bionic as base image * Move cache initialization before apt-get installs * Cache apt packages * Move installation of wget and unzip up as we need it for the cache * Prevent apt from deleting caches * Collect test logs into artifact * Make combine_logs.py always look for the template in the correct dir * Move final cache stuff into after_script * Reintroduce PYTHON_DEBUG=1, but only for .travis.yml * Install jinja2 in Travis builder image * Enable ChainLocks after quorums have been created Creating 4 quorums causes a lot of blocks to be created and signed by ChainLocks, which then causes timeouts later. * Increase timeout in wallet-dump.py test The first dumpwallet is quite slow sometimes, which then makes the later called dumpwallet throw a wallet locked exception.
47 lines
1.1 KiB
Bash
Executable File
47 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script is executed inside the builder image
|
|
|
|
set -e
|
|
|
|
PASS_ARGS="$@"
|
|
|
|
source ./ci/matrix.sh
|
|
|
|
if [ "$RUN_INTEGRATIONTESTS" != "true" ]; then
|
|
echo "Skipping integration tests"
|
|
exit 0
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH=$BUILD_DIR/depends/$HOST/lib
|
|
|
|
cd build-ci/dashcore-$BUILD_TARGET
|
|
|
|
set +e
|
|
./test/functional/test_runner.py --coverage --quiet --nocleanup --tmpdir=$(pwd)/testdatadirs $PASS_ARGS
|
|
RESULT=$?
|
|
set -e
|
|
|
|
echo "Collecting logs..."
|
|
BASEDIR=$(ls testdatadirs)
|
|
if [ "$BASEDIR" != "" ]; then
|
|
mkdir testlogs
|
|
for d in $(ls testdatadirs/$BASEDIR | grep -v '^cache$'); do
|
|
mkdir testlogs/$d
|
|
./test/functional/combine_logs.py -c ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.log
|
|
./test/functional/combine_logs.py --html ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.html
|
|
cd testdatadirs/$BASEDIR/$d
|
|
LOGFILES="$(find . -name 'debug.log' -or -name "test_framework.log")"
|
|
cd ../../..
|
|
for f in $LOGFILES; do
|
|
d2="testlogs/$d/$(dirname $f)"
|
|
mkdir -p $d2
|
|
cp testdatadirs/$BASEDIR/$d/$f $d2/
|
|
done
|
|
done
|
|
fi
|
|
|
|
mv testlogs ../../
|
|
|
|
exit $RESULT
|