Skip to content

Commit be5079d

Browse files
Michael Vasseurvmcj
authored andcommitted
Remove some boilerplate which is not needed anymore as we exit earlier
1 parent 4b3cf2d commit be5079d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/jobs/unit-tests.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,8 @@ CNT=0
4141
THRESHOLD=32
4242
if [ $CODECOVERAGE -eq 1 ]; then
4343
CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
44-
FILE=deprecation.txt
45-
sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out > ${DIR}/$FILE
46-
if [ $CNT -le $THRESHOLD ]; then
47-
STATE=success
48-
else
49-
STATE=failure
44+
if [ $CNT -gt $THRESHOLD ]; then
45+
UNITSUCCESS=1
5046
fi
5147
fi
5248
if [ $UNITSUCCESS -eq 0 ]; then

0 commit comments

Comments
 (0)