This commit is contained in:
Akolzin Dmitry 2020-02-19 15:15:21 +03:00
parent 137c83aa66
commit 4b57be19e1
2 changed files with 3 additions and 3 deletions

View File

@ -67,11 +67,10 @@ jobs:
- git config --local user.email "support@retailcrm.ru"
- export TRAVIS_TAG=v$VERSION
- git tag $TRAVIS_TAG
- export DEPLOY=true
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true
file: $ARCHIVE_NAME
if: branch = master AND type = push AND env(DEPLOY) = true
if: branch = master AND type = push AND env(CURRENT_VERSION) != env(LAST_TAG)
after_deploy: make delete_archive

View File

@ -23,6 +23,7 @@ before_script:
bin/robo --load-from tests/RoboFile.php project:deploy
(php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
sleep 2
export LAST_TAG=`git describe --abbrev=0 --tags`
export CURRENT_VERSION=v`cat VERSION`
covegare:
wget https://phar.phpunit.de/phpcov-2.0.2.phar && php phpcov-2.0.2.phar merge coverage/ --clover coverage.xml