File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,16 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3333 pcov=" --coverage-html=${DIR} /coverage-html --coverage-clover coverage.xml"
3434fi
3535set +e
36- php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${DIR } /unit-tests.xml --colors=never $pcov > " $ARTIFACTS " /phpunit.out
36+ 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
3737UNITSUCCESS=$?
38+
39+ # Store the unit tests also in the root for the GHA
40+ cp $ARTIFACTS /unit-tests.xml $DIR /
41+
42+ # Make sure the log exists before copy
43+ touch ${DIR} /webapp/var/log/test.log
44+ cp ${DIR} /webapp/var/log/* .log " $ARTIFACTS " /
45+
3846set -e
3947CNT=0
4048THRESHOLD=32
You can’t perform that action at this time.
0 commit comments