From 26a6a0731c8644b46e71b477d5af1613bcd5c731 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Wed, 13 Jun 2018 17:35:29 +0300 Subject: [PATCH] Makefile, edit travis.yml --- .travis.yml | 3 +-- Makefile | 14 ++++++++++++++ VERSION | 1 + phpunit.xml => phpunit.xml.dist | 0 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 VERSION rename phpunit.xml => phpunit.xml.dist (100%) 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