File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 37
37
set +e
38
38
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
39
39
UNITSUCCESS=$?
40
+
41
+ # Make sure the log exists before copy
42
+ touch ${DIR} /webapp/var/log/test.log
43
+ cp ${DIR} /webapp/var/log/test.log " $ARTIFACTS " /test.log
44
+
40
45
set -e
41
46
CNT=0
42
47
THRESHOLD=32
43
48
if [ $CODECOVERAGE -eq 1 ]; then
44
49
CNT=$( sed -n ' /Generating code coverage report/,$p' " $ARTIFACTS " /phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
45
50
fi
46
- cp webapp/var/log/test.log " $ARTIFACTS " /test.log
47
51
48
52
if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then
49
53
exit 1
@@ -54,6 +58,6 @@ if [ $CODECOVERAGE -eq 1 ]; then
54
58
# Only upload when we got working unit-tests.
55
59
set +u # Uses some variables which are not set
56
60
# shellcheck disable=SC1090
57
- . $DIR /.github/jobs/uploadcodecov.sh 1> /dev/zero 2> /dev/zero
61
+ . $DIR /.github/jobs/uploadcodecov.sh & >> " $ARTIFACTS " /codecov.log
58
62
section_end
59
63
fi
Original file line number Diff line number Diff line change 57
57
if : ${{ !cancelled() }}
58
58
with :
59
59
files : |
60
- /tmp/artifacts/ unit-tests.xml
60
+ unit-tests.xml
You can’t perform that action at this time.
0 commit comments