Skip to content

Commit f82c83e

Browse files
committed
Make unit tests debugable without downloading artifacts.
1 parent 6789703 commit f82c83e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/jobs/unit-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
. .github/jobs/ci_settings.sh
44

5-
set -euo pipefail
5+
set -euxo pipefail
66

77
DIR="$PWD"
88

@@ -34,7 +34,7 @@ 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-
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${ARTIFACTS}/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out
37+
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
3838
UNITSUCCESS=$?
3939

4040
# Store the unit tests also in the root for the GHA

0 commit comments

Comments
 (0)