1
0
mirror of synced 2024-11-21 20:46:06 +03:00
magento-module/.travis.yml
2020-12-23 10:54:39 +03:00

263 lines
4.3 KiB
YAML

os: linux
dist: trusty
language: php
if: tag IS blank
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
stages:
- test
- 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
jobs:
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
include:
- 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
- php: 7.1
env: BRANCH=2.3.1
- php: 7.2
env: BRANCH=2.3.1
- php: 7.1
env: BRANCH=2.3.2
- php: 7.2
env: BRANCH=2.3.2
- php: 7.1
env: BRANCH=2.3.3
- php: 7.2
env: BRANCH=2.3.3
- php: 7.2
env: BRANCH=2.3.4
- stage: deploy
before_script: skip
script: make build_archive
before_deploy:
- export VERSION=`cat VERSION`
- export ARCHIVE_NAME=/tmp/retailcrm-retailcrm-$VERSION.zip
- git config --local user.name "RetailCRM"
- 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