From 96d6489cf95227f98e191fcb991a361c1f4c059a Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Fri, 2 Apr 2021 18:33:00 +0000 Subject: [PATCH] The DoctrineTestBundle deprecation is unfixable in dbal 2.x https://github.com/dmaicher/doctrine-test-bundle/issues/144 --- gitlab/unit-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab/unit-tests.sh b/gitlab/unit-tests.sh index b1cc84869a..0b38e2170d 100755 --- a/gitlab/unit-tests.sh +++ b/gitlab/unit-tests.sh @@ -18,10 +18,10 @@ export APP_ENV="test" # Run phpunit tests. php -dpcov.enabled=1 -dpcov.directory=webapp/src lib/vendor/bin/phpunit -c webapp/phpunit.xml.dist --log-junit ${CI_PROJECT_DIR}/unit-tests.xml --colors=never --coverage-html=${CI_PROJECT_DIR}/coverage-html --coverage-clover coverage.xml > phpunit.out -CNT=$(sed -n '/Generating code coverage report/,$p' phpunit.out | wc -l) +CNT=$(sed -n '/Generating code coverage report/,$p' phpunit.out | grep -v DoctrineTestBundle | grep -v ^$ | wc -l) FILE=deprecation.txt sed -n '/Generating code coverage report/,$p' phpunit.out > ${CI_PROJECT_DIR}/$FILE -if [ $CNT -eq 3 ]; then +if [ $CNT -lt 5 ]; then STATE=success else STATE=failure