File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
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
+
45
+ exit 0
46
+
40
47
set -e
41
48
CNT=0
42
49
THRESHOLD=32
@@ -46,15 +53,6 @@ if [ $CODECOVERAGE -eq 1 ]; then
46
53
UNITSUCCESS=1
47
54
fi
48
55
fi
49
- if [ $UNITSUCCESS -eq 0 ]; then
50
- STATE=success
51
- else
52
- STATE=failure
53
- fi
54
-
55
- # Make sure the log exists before copy
56
- touch ${DIR} /webapp/var/log/test.log
57
- cp ${DIR} /webapp/var/log/test.log " $ARTIFACTS " /test.log
58
56
59
57
if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then
60
58
exit 1
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