2018-06-13 16:13:08 +03:00
|
|
|
language: php
|
|
|
|
|
2019-07-18 12:51:58 +03:00
|
|
|
dist: trusty
|
|
|
|
|
2018-06-13 16:13:08 +03:00
|
|
|
sudo: false
|
|
|
|
|
2020-02-18 09:41:43 +03:00
|
|
|
php:
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
|
2018-06-13 16:13:08 +03:00
|
|
|
env:
|
2018-06-13 16:26:07 +03:00
|
|
|
global:
|
|
|
|
- OC_DB_HOSTNAME=localhost
|
|
|
|
- OC_DB_USERNAME=root
|
|
|
|
- OC_DB_PASSWORD=root
|
|
|
|
- OC_DB_DATABASE=tests_opencart
|
|
|
|
- OC_DB_DRIVER=mysqli
|
|
|
|
- OC_USERNAME=admin
|
|
|
|
- OC_PASSWORD=admin
|
2018-06-13 17:18:06 +03:00
|
|
|
- OC_EMAIL=test@test.com
|
2018-06-13 16:26:07 +03:00
|
|
|
- SERVER_PORT=8000
|
|
|
|
- SERVER_URL=http://localhost
|
2018-06-13 16:13:08 +03:00
|
|
|
|
2020-02-18 11:27:56 +03:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
2020-02-18 00:11:29 +03:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-02-18 11:38:11 +03:00
|
|
|
- stage: test
|
|
|
|
before_script: make before_script
|
|
|
|
script: composer test
|
2020-02-18 11:27:56 +03:00
|
|
|
- stage: deploy
|
2020-02-18 10:11:51 +03:00
|
|
|
script: make build_archive
|
|
|
|
before_deploy:
|
2020-02-18 10:50:40 +03:00
|
|
|
- export VERSION=`cat VERSION`
|
2020-02-18 11:38:11 +03:00
|
|
|
- export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
|
2020-02-18 10:11:51 +03:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
|
|
skip_cleanup: true
|
|
|
|
file: $ARCHIVE_NAME
|
2020-02-18 11:38:11 +03:00
|
|
|
php: 7.1
|
2020-02-18 10:11:51 +03:00
|
|
|
on:
|
|
|
|
branch: master
|