mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
update deploy
This commit is contained in:
parent
353557effe
commit
24413ee15b
18
.travis.yml
18
.travis.yml
@ -23,6 +23,7 @@ env:
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script: make before_script
|
before_script: make before_script
|
||||||
@ -31,21 +32,16 @@ script: composer test
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: deploy
|
- stage: build
|
||||||
before_script: skip
|
before_script: skip
|
||||||
script: make build_archive
|
script: make build_archive
|
||||||
before_deploy:
|
- stage: deploy
|
||||||
- export VERSION=`cat VERSION`
|
before_script: skip
|
||||||
- export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
|
before_deploy: make tag
|
||||||
- git config --local user.name "retailCRM"
|
|
||||||
- git config --local user.email "support@retailcrm.ru"
|
|
||||||
- export TRAVIS_TAG=v$VERSION
|
|
||||||
- git tag $TRAVIS_TAG
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GITHUB_OAUTH_TOKEN
|
api_key: $GITHUB_OAUTH_TOKEN
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
file: $ARCHIVE_NAME
|
file: $ARCHIVE_NAME
|
||||||
if: (branch = master) AND (type = push) AND (fork = true)
|
if: (branch = master) AND (type = push) AND (fork = true)
|
||||||
on:
|
after_deploy: make delete_archive
|
||||||
php: 7.1
|
|
10
Makefile
10
Makefile
@ -20,4 +20,12 @@ before_script:
|
|||||||
composer setup
|
composer setup
|
||||||
bin/robo --load-from tests/RoboFile.php project:deploy
|
bin/robo --load-from tests/RoboFile.php project:deploy
|
||||||
(php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
|
(php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
|
||||||
sleep 2
|
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
|
Loading…
Reference in New Issue
Block a user