Skip to content

Commit

Permalink
The DoctrineTestBundle deprecation is unfixable in dbal 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
thijskh committed Apr 3, 2021
1 parent 7d40fe6 commit 96d6489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab/unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96d6489

Please sign in to comment.