2018-05-15 15:54:55 +03:00
|
|
|
FILE = $(TRAVIS_BUILD_DIR)/VERSION
|
|
|
|
VERSION = `cat $(FILE)`
|
|
|
|
ARCHIVE_NAME = '/tmp/retailcrm-retailcrm-'$(VERSION)'.zip'
|
2020-05-18 12:19:01 +03:00
|
|
|
MAGE_ROOT = $(TRAVIS_BUILD_DIR)/../magento2
|
2018-05-15 15:54:55 +03:00
|
|
|
|
|
|
|
all: build_archive send_to_ftp delete_archive
|
|
|
|
|
|
|
|
build_archive:
|
|
|
|
cd src; zip -r $(ARCHIVE_NAME) ./*
|
|
|
|
|
|
|
|
send_to_ftp:
|
2018-06-14 12:11:29 +03:00
|
|
|
curl -T $(ARCHIVE_NAME) -u $(FTP_USER):$(FTP_PASSWORD) ftp://$(FTP_HOST)
|
2018-05-15 15:54:55 +03:00
|
|
|
|
|
|
|
delete_archive:
|
|
|
|
rm -f $(ARCHIVE_NAME)
|
2020-05-18 12:19:01 +03:00
|
|
|
|
|
|
|
ci:
|
|
|
|
php $(MAGE_ROOT)/vendor/phpunit/phpunit/phpunit -c $(MAGE_ROOT)/dev/tests/unit/phpunit.xml.dist $(MAGE_ROOT)/app/code/Retailcrm/Retailcrm/Test/Unit
|