update travis config

This commit is contained in:
Akolzin Dmitry 2020-02-18 13:09:49 +03:00
parent 5f60b761f0
commit bc0d3660ad
2 changed files with 7 additions and 9 deletions

View File

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

View File

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