mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
41 lines
869 B
YAML
41 lines
869 B
YAML
language: php
|
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
php:
|
|
- 7.0
|
|
- 7.1
|
|
|
|
env:
|
|
global:
|
|
- ROBO_CONFIG=$(TRAVIS_BUILD_DIR)/tests/robo.yml
|
|
- 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
|
|
- OC_EMAIL=test@test.com
|
|
- SERVER_PORT=8000
|
|
- SERVER_URL=http://localhost
|
|
|
|
jobs:
|
|
include:
|
|
- stage: test
|
|
script: composer test
|
|
before_script: make before_script
|
|
- stage: GitHub Release
|
|
script: make build_archive
|
|
before_deploy:
|
|
- export VERSION=`cat VERSION`
|
|
- export ARCHIVE_NAME='/tmp/retailcrm-'$(VERSION)'.zip'
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
skip_cleanup: true
|
|
file: $ARCHIVE_NAME
|
|
on:
|
|
branch: master |