opencart-module/Makefile

27 lines
772 B
Makefile
Raw Normal View History

2018-06-13 17:35:29 +03:00
FILE = $(TRAVIS_BUILD_DIR)/VERSION
VERSION = `cat $(FILE)`
2020-02-18 16:16:39 +03:00
ARCHIVE_NAME = '/tmp/retailcrm-'$(VERSION)'.ocmod.zip'
2018-06-13 17:35:29 +03:00
all: build_archive send_to_ftp delete_archive
build_archive:
zip -r $(ARCHIVE_NAME) ./src/*
send_to_ftp:
curl -T $(ARCHIVE_NAME) -u $(FTP_USER):$(FTP_PASSWORD) ftp://$(FTP_HOST)
delete_archive:
2020-02-18 10:50:40 +03:00
rm -f $(ARCHIVE_NAME)
before_script:
# Change MySQL root password
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
composer install
composer setup
bin/robo --load-from tests/RoboFile.php project:deploy
(php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
2020-02-18 12:53:31 +03:00
sleep 2
2020-02-18 18:17:59 +03:00
covegare:
wget https://phar.phpunit.de/phpcov.phar && php phpcov.phar merge coverage/cov --clover coverage.xml