2020-05-18 12:19:01 +03:00
|
|
|
os: linux
|
|
|
|
dist: trusty
|
2018-05-04 16:25:15 +03:00
|
|
|
language: php
|
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
if: tag IS blank
|
2018-05-04 16:25:15 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DB_USER=root
|
|
|
|
- DB_HOST=localhost
|
|
|
|
- DB_NAME=magento2_test
|
|
|
|
- ADMIN_FIRSTNAME=admin_firstname
|
|
|
|
- ADMIN_LASTNAME=admin_lastname
|
|
|
|
- ADMIN_EMAIL=example@email.com
|
|
|
|
- ADMIN_USER=admin
|
|
|
|
- ADMIN_PASS=admin123
|
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
stages:
|
|
|
|
- test
|
2020-05-18 16:34:25 +03:00
|
|
|
- deploy
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- export LAST_TAG=`git describe --abbrev=0 --tags`
|
|
|
|
- export CURRENT_VERSION=v`cat VERSION`
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- bash bin/install.sh
|
|
|
|
|
|
|
|
script: make ci
|
2020-05-18 12:19:01 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-05-18 16:34:25 +03:00
|
|
|
allow_failures:
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.2
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.4
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.5
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.6
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.7
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.8
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.9
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.10
|
|
|
|
- if: fork = true
|
|
|
|
env: BRANCH=2.0.11
|
|
|
|
|
2018-05-04 16:25:15 +03:00
|
|
|
include:
|
2020-05-18 12:19:01 +03:00
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.2
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.4
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.5
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.6
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.7
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.8
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.9
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.10
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.11
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.12
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.13
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.14
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.15
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.16
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.17
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.0.18
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.0
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.1
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.2
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.3
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.4
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.5
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.6
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.7
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.8
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.9
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.10
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.11
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.12
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.13
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.14
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.15
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.16
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.1.16
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.17
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.1.17
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.1.18
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.1.18
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.0
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.0
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.1
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.1
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.2
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.2
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.3
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.3
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.4
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.4
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.5
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.5
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.6
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.6
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.7
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.7
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.8
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.8
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.9
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.9
|
|
|
|
|
|
|
|
- php: 7.0
|
|
|
|
env: BRANCH=2.2.10
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.2.10
|
|
|
|
- php: 7.2
|
|
|
|
env: BRANCH=2.2.10
|
|
|
|
|
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.3.0
|
|
|
|
- php: 7.2
|
|
|
|
env: BRANCH=2.3.0
|
2019-10-17 13:40:32 +03:00
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.3.1
|
|
|
|
- php: 7.2
|
|
|
|
env: BRANCH=2.3.1
|
2019-10-17 13:40:32 +03:00
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.3.2
|
|
|
|
- php: 7.2
|
|
|
|
env: BRANCH=2.3.2
|
2019-10-17 13:40:32 +03:00
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
- php: 7.1
|
|
|
|
env: BRANCH=2.3.3
|
|
|
|
- php: 7.2
|
|
|
|
env: BRANCH=2.3.3
|
2019-10-17 13:40:32 +03:00
|
|
|
|
2020-05-18 12:19:01 +03:00
|
|
|
- php: 7.2
|
|
|
|
env: BRANCH=2.3.4
|
2018-05-04 16:25:15 +03:00
|
|
|
|
2020-05-18 16:34:25 +03:00
|
|
|
- stage: deploy
|
|
|
|
before_script: skip
|
|
|
|
script: make build_archive
|
|
|
|
before_deploy:
|
|
|
|
- export VERSION=`cat VERSION`
|
|
|
|
- export ARCHIVE_NAME=/tmp/retailcrm-retailcrm-$VERSION.zip
|
2020-12-17 11:13:11 +03:00
|
|
|
- git config --local user.name "RetailCRM"
|
2020-05-18 16:34:25 +03:00
|
|
|
- git config --local user.email "support@retailcrm.ru"
|
|
|
|
- export TRAVIS_TAG=v$VERSION
|
|
|
|
- git tag $TRAVIS_TAG
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
token: $GITHUB_OAUTH_TOKEN
|
|
|
|
cleanup: false
|
|
|
|
file: $ARCHIVE_NAME
|
|
|
|
on:
|
|
|
|
condition: "$LAST_TAG != $CURRENT_VERSION"
|
|
|
|
if: branch = master AND type = push AND fork = false
|
|
|
|
after_deploy: make delete_archive
|