Skip to content

Commit 8d0813d

Browse files
author
Michael Vasseur
committed
Remove some boilerplate which is not needed anymore as we exit earlier
1 parent 9cf13c7 commit 8d0813d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/jobs/unit-tests.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,10 @@ set +e
3737
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
3838
UNITSUCCESS=$?
3939
set -e
40-
CNT=0
4140
if [ $CODECOVERAGE -eq 1 ]; then
4241
CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
43-
FILE=deprecation.txt
44-
sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out > ${DIR}/$FILE
45-
if [ $CNT -le 32 ]; then
46-
STATE=success
47-
else
48-
STATE=failure
42+
if [ $CNT -gt 32 ]; then
43+
UNITSUCCESS=1
4944
fi
5045
fi
5146
cp webapp/var/log/test.log "$ARTIFACTS"/test.log

0 commit comments

Comments
 (0)