mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
update phpunit config
This commit is contained in:
parent
b15be0d7dd
commit
4a468344f9
@ -65,6 +65,7 @@ jobs:
|
||||
env: BRANCH=1.7.5.x
|
||||
- php: 7.2
|
||||
env: BRANCH=1.7.5.x
|
||||
after_success: bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
before_script: make before_script
|
||||
|
||||
|
4
Makefile
4
Makefile
@ -18,7 +18,7 @@ delete_archive:
|
||||
rm -f $(ARCHIVE_NAME)
|
||||
rm -f /tmp/retailcrm.zip
|
||||
|
||||
composer: clone_prestashop
|
||||
composer:
|
||||
@cd $(PRESTASHOP_DIR) && git checkout $(BRANCH)
|
||||
ifeq ($(COMPOSER_IN_TESTS),1)
|
||||
@cd $(PRESTASHOP_DIR)/tests && composer install
|
||||
@ -56,6 +56,6 @@ test:
|
||||
ifeq ($(COMPOSER_IN_TESTS),1)
|
||||
phpunit
|
||||
else
|
||||
cd $(PRESTASHOP_DIR) && composer run-script create-test-db --timeout=0
|
||||
# cd $(PRESTASHOP_DIR) && composer run-script create-test-db --timeout=0
|
||||
cd $(PRESTASHOP_DIR) && php vendor/bin/phpunit -c $(ROOT_DIR)/phpunit.xml.dist
|
||||
endif
|
||||
|
@ -30,4 +30,7 @@
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<logging>
|
||||
<log type="coverage-clover" target="coverage.xml"/>
|
||||
</logging>
|
||||
</phpunit>
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (is_dir(__DIR__ . '/../../PrestaShop/tests-legacy')) {
|
||||
if (file_exists(__DIR__ . '/../../PrestaShop/tests-legacy')) {
|
||||
require_once __DIR__ . '/../../PrestaShop/tests-legacy/bootstrap.php';
|
||||
} else {
|
||||
require_once __DIR__ . '/../../PrestaShop/tests/bootstrap.php';
|
||||
|
Loading…
x
Reference in New Issue
Block a user