From bc0d3660ad32fe9501a73909fd137757390e0698 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Tue, 18 Feb 2020 13:09:49 +0300 Subject: [PATCH] update travis config --- .travis.yml | 8 +++++++- Makefile | 8 -------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index ddab3f0..360bd3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,13 @@ jobs: - stage: deploy before_script: skip script: skip - before_deploy: make tag + before_deploy: + - export VERSION=`cat VERSION` + - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip + - git config --local user.name "retailCRM" + - git config --local user.email "support@retailcrm.ru" + - export TRAVIS_TAG=v$VERSION + - git tag $TRAVIS_TAG deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN diff --git a/Makefile b/Makefile index 1ae58e1..63cffa5 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,3 @@ before_script: bin/robo --load-from tests/RoboFile.php project:deploy (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null sleep 2 - -tag: - export VERSION=`cat VERSION` - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip - git config --local user.name "retailCRM" - git config --local user.email "support@retailcrm.ru" - export TRAVIS_TAG=v$VERSION - git tag $TRAVIS_TAG \ No newline at end of file