We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf13c7 commit 8d0813dCopy full SHA for 8d0813d
.github/jobs/unit-tests.sh
@@ -37,15 +37,10 @@ set +e
37
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
38
UNITSUCCESS=$?
39
set -e
40
-CNT=0
41
if [ $CODECOVERAGE -eq 1 ]; then
42
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
+ if [ $CNT -gt 32 ]; then
+ UNITSUCCESS=1
49
fi
50
51
cp webapp/var/log/test.log "$ARTIFACTS"/test.log
0 commit comments