docker-qgis-test.sh: add some CI-oriented grouping labels

This commit is contained in:
Sandro Santilli 2022-06-06 10:01:41 +02:00
parent 4e194084d2
commit a0704f7ea8

View File

@ -87,6 +87,8 @@ fi
if [ ${RUN_POSTGRES:-"NO"} == "YES" ]; then if [ ${RUN_POSTGRES:-"NO"} == "YES" ]; then
echo "::group::Setup PostgreSQL"
############################ ############################
# Restore postgres test data # Restore postgres test data
############################ ############################
@ -113,10 +115,14 @@ if [ ${RUN_POSTGRES:-"NO"} == "YES" ]; then
echo "Postgres test data restored ..." echo "Postgres test data restored ..."
popd > /dev/null # /root/QGIS popd > /dev/null # /root/QGIS
echo "::endgroup::"
fi fi
if [ ${RUN_ORACLE:-"NO"} == "YES" ]; then if [ ${RUN_ORACLE:-"NO"} == "YES" ]; then
echo "::group::Setup Oracle"
############################## ##############################
# Restore Oracle test data # Restore Oracle test data
############################## ##############################
@ -147,10 +153,14 @@ if [ ${RUN_ORACLE:-"NO"} == "YES" ]; then
popd > /dev/null # /root/QGIS popd > /dev/null # /root/QGIS
fi fi
echo "::endgroup::"
fi fi
if [ ${RUN_SQLSERVER:-"NO"} == "YES" ]; then if [ ${RUN_SQLSERVER:-"NO"} == "YES" ]; then
echo "::group::Setup SQL Server"
############################## ##############################
# Restore SQL Server test data # Restore SQL Server test data
############################## ##############################
@ -181,6 +191,8 @@ Description = Test SQL Server
Server = mssql Server = mssql
EOT EOT
echo "::endgroup::"
fi fi
####################################### #######################################
@ -189,6 +201,8 @@ fi
if [ $# -eq 0 ] || [ $1 = "ALL_BUT_PROVIDERS" ] || [ $1 = "ALL" ] ; then if [ $# -eq 0 ] || [ $1 = "ALL_BUT_PROVIDERS" ] || [ $1 = "ALL" ] ; then
echo "::group::Setup WebDAV"
echo "Wait for webdav to be ready..." echo "Wait for webdav to be ready..."
COUNT=0 COUNT=0
while ! curl -f -X GET -u qgis:myPasswd! http://$QGIS_WEBDAV_HOST:$QGIS_WEBDAV_PORT/webdav_tests/ &> /dev/null; while ! curl -f -X GET -u qgis:myPasswd! http://$QGIS_WEBDAV_HOST:$QGIS_WEBDAV_PORT/webdav_tests/ &> /dev/null;
@ -204,6 +218,8 @@ if [ $# -eq 0 ] || [ $1 = "ALL_BUT_PROVIDERS" ] || [ $1 = "ALL" ] ; then
else else
echo "done" echo "done"
fi fi
echo "::endgroup::"
fi fi
########### ###########
@ -218,10 +234,12 @@ else
fi fi
echo "List of skipped tests: $EXCLUDE_TESTS" echo "List of skipped tests: $EXCLUDE_TESTS"
echo "Print disk space" echo "::group::Print disk space before running tests"
df -h df -h
echo "::endgroup::"
python3 ${SRCDIR}/.ci/ctest2ci.py xvfb-run ctest -V $CTEST_OPTIONS -E "${EXCLUDE_TESTS}" -S ${SRCDIR}/.ci/config_test.ctest --output-on-failure python3 ${SRCDIR}/.ci/ctest2ci.py xvfb-run ctest -V $CTEST_OPTIONS -E "${EXCLUDE_TESTS}" -S ${SRCDIR}/.ci/config_test.ctest --output-on-failure
echo "Print disk space" echo "::group::Print disk space after running tests"
df -h df -h
echo "::endgroup::"