forked from magento/ece-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (81 loc) · 2.96 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
dist: bionic
addons:
hosts:
- magento2.docker
git:
depth: false
services:
- docker
language: php
php:
- '7.1'
- '7.2'
- '7.3'
env:
- TEST_SUITE=functional-ce
- TEST_SUITE=functional-ee
- TEST_SUITE=functional-ee FUNCTIONAL_INDEX=1
- TEST_SUITE=functional-ee FUNCTIONAL_INDEX=2
- TEST_SUITE=functional-ee FUNCTIONAL_INDEX=3
- TEST_SUITE=functional-ee FUNCTIONAL_INDEX=4
- TEST_SUITE=functional-ee FUNCTIONAL_INDEX=5
stages:
- static-unit
- integration
- test
jobs:
include:
- stage: static-unit
script: ./tests/travis/static-unit.sh
env:
- TEST_SUITE=static-unit
- XDEBUG=true
- script: ./tests/travis/static-unit.sh
php: '7.2'
env:
- TEST_SUITE=static-unit
- XDEBUG=true
- script: ./tests/travis/static-unit.sh
php: '7.3'
env:
- TEST_SUITE=static-unit
- XDEBUG=true
- stage: integration
script: ./tests/travis/integration.sh;
env:
- TEST_SUITE=integration
- script: ./tests/travis/integration.sh;
php: '7.2'
env:
- TEST_SUITE=integration
- script: ./tests/travis/integration.sh;
php: '7.3'
env:
- TEST_SUITE=integration
exclude:
- php: '7.1'
env: TEST_SUITE=functional-ee FUNCTIONAL_INDEX=1
- php: '7.1'
env: TEST_SUITE=functional-ee FUNCTIONAL_INDEX=2
- php: '7.1'
env: TEST_SUITE=functional-ee FUNCTIONAL_INDEX=3
- php: '7.1'
env: TEST_SUITE=functional-ee FUNCTIONAL_INDEX=4
- php: '7.1'
env: TEST_SUITE=functional-ee FUNCTIONAL_INDEX=5
- php: '7.2'
env: TEST_SUITE=functional-ee
- php: '7.3'
env: TEST_SUITE=functional-ee
install:
- composer config http-basic.repo.magento.com ${REPO_USERNAME_CE} ${REPO_PASSWORD_CE}
- composer config github-oauth.github.com ${GITHUB_TOKEN}
- if [ -n "${MCC_VERSION}" ]; then composer config repositories.mcc git git@github.com:magento/magento-cloud-components.git && composer require "magento/magento-cloud-components:${MCC_VERSION}" --no-update; fi;
- if [ -n "${MCD_VERSION}" ]; then composer config repositories.mcd git git@github.com:magento/magento-cloud-docker.git && composer require "magento/magento-cloud-docker:${MCD_VERSION}" --no-update; fi;
- if [ -n "${MCP_VERSION}" ]; then composer config repositories.mcp git git@github.com:magento/magento-cloud-patches.git && composer require "magento/magento-cloud-patches:${MCP_VERSION}" --no-update; fi;
- composer update -n --no-suggest
before_script:
- if [ $TEST_SUITE == "functional-ce" ]; then cp codeception.dist.yml codeception.yml && sed -i "s/REPO_USERNAME/REPO_USERNAME_CE/" codeception.yml && sed -i "s/REPO_PASSWORD/REPO_PASSWORD_CE/" codeception.yml; fi;
script:
- if [ $TEST_SUITE == "functional-ce" ]; then ./tests/travis/functional_ce.sh; fi;
- if [ $TEST_SUITE == "functional-ee" ] && [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/prepare_functional_parallel.sh && ./tests/travis/functional_ee.sh; fi;