mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
ff6f391aea
* Remove unused jenkins stuff * Install all dependencies in builder image Instead of only target specific dependencies. * Use docker builder image for builds * Optimize apt installations * Move building of dependencies into separate stage The build-depends-xxx jobs will create artifacts (depends/$HOST) which are then pulled in by the build jobs with the help of "needs" * Remove use of caches from develop branch * Use gitlab specific extends instead of YAML anchors * Move before_script of build_template into base_template * Add hack for parallel installation of i686 and arm cross compilation * Install python3-setuptools in builder image * Remove unnecessary change-dir * Use variables to pass BUILD_TARGET instead of relying on the job name * Move integration tests into separate stage * Don't use --quiet for integration tests on Gitlab
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 --ci --coverage --failfast --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
|