diff --git a/.travis.yml b/.travis.yml index 516e2af..c98c779 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ sudo: false php: - 7.0 - 7.1 - - 7.2 env: global: @@ -38,6 +37,6 @@ deploy: provider: script script: make on: - php: 7.2 + php: 7.1 branch: master condition: "$DEPLOY = true" \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..779039e --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +FILE = $(TRAVIS_BUILD_DIR)/VERSION +VERSION = `cat $(FILE)` +ARCHIVE_NAME = '/tmp/retailcrm-'$(VERSION)'.zip' + +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: + rm -f $(ARCHIVE_NAME) \ No newline at end of file diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..b38ebbf --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +3.0.4 \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 100% rename from phpunit.xml rename to phpunit.xml.dist