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
36
36
echo " unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret
37
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
38
38
UNITSUCCESS=$?
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
+
39
44
set -e
40
45
CNT=0
41
46
THRESHOLD=32
@@ -62,7 +67,6 @@ if [ $UNITSUCCESS -eq 0 ]; then
62
67
else
63
68
STATE=failure
64
69
fi
65
- cp webapp/var/log/test.log " $ARTIFACTS " /test.log
66
70
67
71
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
68
72
-X POST \
You can’t perform that action at this time.
0 commit comments