test deploy

This commit is contained in:
Akolzin Dmitry 2020-02-18 10:11:51 +03:00
parent 090a4b6cfa
commit 9e1edf2fcc

View File

@ -32,15 +32,20 @@ before_script:
- (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
- sleep 2
script:
- composer test
jobs:
include:
- script: composer test
- stage: GitHub Release
script: make build_archive
before_deploy:
- `cat VERSION|awk '{print "export ARCHIVE_NAME=retailcrm-"$1".zip"}'`
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true
provider: script
script: make
file: $ARCHIVE_NAME
on:
php: 7.1
branch: master
condition: "$DEPLOY = true"