mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 13:16:07 +03:00
update travis config
This commit is contained in:
parent
979fdf58b6
commit
6d1cfa4d0c
11
.travis.yml
11
.travis.yml
@ -10,7 +10,6 @@ php:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- ROBO_CONFIG=$(TRAVIS_BUILD_DIR)/tests/robo.yml
|
|
||||||
- OC_DB_HOSTNAME=localhost
|
- OC_DB_HOSTNAME=localhost
|
||||||
- OC_DB_USERNAME=root
|
- OC_DB_USERNAME=root
|
||||||
- OC_DB_PASSWORD=root
|
- OC_DB_PASSWORD=root
|
||||||
@ -26,21 +25,21 @@ stages:
|
|||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script: make before_script
|
|
||||||
|
|
||||||
script: composer test
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
- stage: test
|
||||||
|
before_script: make before_script
|
||||||
|
script: composer test
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
script: make build_archive
|
script: make build_archive
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- export VERSION=`cat VERSION`
|
- export VERSION=`cat VERSION`
|
||||||
- export ARCHIVE_NAME='/tmp/retailcrm-'$(VERSION)'.zip'
|
- export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
|
||||||
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
|
||||||
|
php: 7.1
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
Loading…
Reference in New Issue
Block a user