Makefile, edit travis.yml

This commit is contained in:
Akolzin Dmitry 2018-06-13 17:35:29 +03:00
parent a9c8a96101
commit 26a6a0731c
4 changed files with 16 additions and 2 deletions

View File

@ -5,7 +5,6 @@ sudo: false
php: php:
- 7.0 - 7.0
- 7.1 - 7.1
- 7.2
env: env:
global: global:
@ -38,6 +37,6 @@ deploy:
provider: script provider: script
script: make script: make
on: on:
php: 7.2 php: 7.1
branch: master branch: master
condition: "$DEPLOY = true" condition: "$DEPLOY = true"

14
Makefile Normal file
View File

@ -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)

1
VERSION Normal file
View File

@ -0,0 +1 @@
3.0.4