Skip to content

Commit 6949655

Browse files
committed
Do not clutter unit test output on CI with deprecation notices.
If we actually care we should set up a seperate test for it.
1 parent f82c83e commit 6949655

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/jobs/unit-tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3434
fi
3535
set +e
3636
echo "unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret
37+
38+
# Do not clutter the output with deprecation notices that we are not interested
39+
# in when running unit tests.
40+
export SYMFONY_DEPRECATIONS_HELPER=disabled=1
41+
3742
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
3843
UNITSUCCESS=$?
3944

0 commit comments

Comments
 (0)