2021-01-30 15:37:57 +03:00
|
|
|
export ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
2018-05-15 15:54:55 +03:00
|
|
|
VERSION = `cat $(FILE)`
|
|
|
|
ARCHIVE_NAME = '/tmp/retailcrm-retailcrm-'$(VERSION)'.zip'
|
2021-01-30 15:37:57 +03:00
|
|
|
MAGE_ROOT=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/../magento2
|
2018-05-15 15:54:55 +03:00
|
|
|
|
2020-05-18 16:34:25 +03:00
|
|
|
.PHONY: build_archive delete_archive
|
2018-05-15 15:54:55 +03:00
|
|
|
|
|
|
|
build_archive:
|
|
|
|
cd src; zip -r $(ARCHIVE_NAME) ./*
|
|
|
|
|
|
|
|
delete_archive:
|
|
|
|
rm -f $(ARCHIVE_NAME)
|
2020-05-18 12:19:01 +03:00
|
|
|
|
2021-01-30 15:37:57 +03:00
|
|
|
test:
|
|
|
|
mkdir coverage
|
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
php $(MAGE_ROOT)/vendor/phpunit/phpunit/phpunit -c $(MAGE_ROOT)/dev/tests/unit/phpunit.xml.dist $(MAGE_ROOT)/app/code/Retailcrm/Retailcrm/Test/Unit
|
2021-01-30 15:37:57 +03:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
bash bin/install.sh
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
wget https://phar.phpunit.de/phpcov-2.0.2.phar && php phpcov-2.0.2.phar merge coverage/ --clover coverage.xml
|