From 6949655dc1dc89dd04b25e84fe9e54fe8c28d391 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 1 Mar 2025 08:20:53 +0000 Subject: [PATCH] Do not clutter unit test output on CI with deprecation notices. If we actually care we should set up a seperate test for it. --- .github/jobs/unit-tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/jobs/unit-tests.sh b/.github/jobs/unit-tests.sh index c44b8171da..2d54e67682 100755 --- a/.github/jobs/unit-tests.sh +++ b/.github/jobs/unit-tests.sh @@ -34,6 +34,11 @@ if [ "$CODECOVERAGE" -eq 1 ]; then fi set +e echo "unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret + +# Do not clutter the output with deprecation notices that we are not interested +# in when running unit tests. +export SYMFONY_DEPRECATIONS_HELPER=disabled=1 + php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${ARTIFACTS}/unit-tests.xml --colors=never $pcov | tee "$ARTIFACTS"/phpunit.out UNITSUCCESS=$?