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