mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-02-16 14:33:17 +03:00
merge coverage
This commit is contained in:
parent
2551e11e4c
commit
670e7ecfbd
3
Makefile
3
Makefile
@ -14,6 +14,7 @@ delete_archive:
|
|||||||
rm -f $(ARCHIVE_NAME)
|
rm -f $(ARCHIVE_NAME)
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
mkdir coverage
|
||||||
# Change MySQL root password
|
# Change MySQL root password
|
||||||
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
||||||
composer install
|
composer install
|
||||||
@ -23,4 +24,4 @@ before_script:
|
|||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
covegare:
|
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
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
"opencart-dir" : "www"
|
"opencart-dir" : "www"
|
||||||
},
|
},
|
||||||
"scripts" : {
|
"scripts" : {
|
||||||
"test-admin": "bin/phpunit --coverage-php coverage/cov/admin.cov --testsuite tests --colors=always",
|
"test-admin": "bin/phpunit --coverage-php coverage/admin.cov --testsuite tests --colors=always",
|
||||||
"test-catalog": "bin/phpunit --coverage-php coverage/cov/catalog.cov --testsuite catalog-tests --colors=always",
|
"test-catalog": "bin/phpunit --coverage-php coverage/catalog.cov --testsuite catalog-tests --colors=always",
|
||||||
"test": [
|
"test": [
|
||||||
"@test-admin",
|
"@test-admin",
|
||||||
"@test-catalog"
|
"@test-catalog"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user