File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ set +e
3636echo " unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret
3737php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${ARTIFACTS} /unit-tests.xml --colors=never $pcov > " $ARTIFACTS " /phpunit.out
3838UNITSUCCESS=$?
39+
40+ # Make sure the log exists before copy
41+ touch ${DIR} /webapp/var/log/test.log
42+ cp ${DIR} /webapp/var/log/* .log " $ARTIFACTS " /
43+
3944set -e
4045CNT=0
4146THRESHOLD=32
@@ -62,7 +67,6 @@ if [ $UNITSUCCESS -eq 0 ]; then
6267else
6368 STATE=failure
6469fi
65- cp webapp/var/log/test.log " $ARTIFACTS " /test.log
6670
6771curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
6872 -X POST \
You can’t perform that action at this time.
0 commit comments