1
0
mirror of synced 2024-11-21 20:46:06 +03:00
magento-module/Makefile

24 lines
699 B
Makefile
Raw Normal View History

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)
2021-01-30 15:37:57 +03:00
test:
mkdir coverage
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