merge coverage

This commit is contained in:
Akolzin Dmitry 2020-02-18 18:22:03 +03:00
parent 2551e11e4c
commit 670e7ecfbd
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ delete_archive:
rm -f $(ARCHIVE_NAME)
before_script:
mkdir coverage
# Change MySQL root password
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
composer install
@ -23,4 +24,4 @@ before_script:
sleep 2
covegare:
wget https://phar.phpunit.de/phpcov.phar && php phpcov.phar merge coverage/cov --clover coverage.xml
wget https://phar.phpunit.de/phpcov.phar && php phpcov.phar merge coverage/ --clover coverage.xml

View File

@ -25,8 +25,8 @@
"opencart-dir" : "www"
},
"scripts" : {
"test-admin": "bin/phpunit --coverage-php coverage/cov/admin.cov --testsuite tests --colors=always",
"test-catalog": "bin/phpunit --coverage-php coverage/cov/catalog.cov --testsuite catalog-tests --colors=always",
"test-admin": "bin/phpunit --coverage-php coverage/admin.cov --testsuite tests --colors=always",
"test-catalog": "bin/phpunit --coverage-php coverage/catalog.cov --testsuite catalog-tests --colors=always",
"test": [
"@test-admin",
"@test-catalog"