forked from magento/magento-cloud-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (55 loc) · 1.7 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
dist: xenial
git:
depth: false
addons:
hosts:
- magento2.docker
services:
- docker
language: php
stages:
- static-unit
- test
jobs:
include:
- stage: static-unit
script: ./tests/travis/static-unit.sh;
php: '7.1'
env:
- TEST_SUITE=static-unit
- script: ./tests/travis/static-unit.sh;
php: '7.2'
env:
- TEST_SUITE=static-unit
- script: ./tests/travis/static-unit.sh;
php: '7.3'
env:
- TEST_SUITE=static-unit
- stage: test
php: '7.1'
env:
- TEST_SUITE=functional
- php: '7.2'
env:
- TEST_SUITE=functional
- php: '7.3'
env:
- TEST_SUITE=functional
- php: '7.4'
dist: bionic
env:
- TEST_SUITE=functional
before_install:
# https://github.com/kylekatarnls/update-helper/issues/9
- if [ -n "${COMPOSER_VERSION}" ]; then travis_retry composer self-update ${COMPOSER_VERSION}; fi;
install:
- composer config github-oauth.github.com ${GITHUB_TOKEN}
- composer config http-basic.repo.magento.com ${REPO_USERNAME} ${REPO_PASSWORD};
- if [ -n "${MCD_VERSION}" ]; then composer config repositories.mcd git [email protected]:magento/magento-cloud-docker.git && composer require "magento/magento-cloud-docker:${MCD_VERSION}" --no-update; fi;
- composer config repositories.magento composer https://repo.magento.com/
- composer require "magento/framework:*" --no-update
- composer require "magento/module-store:*" --no-update
- composer require "magento/module-url-rewrite:*" --no-update
- composer update -n --no-suggest
script:
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ] && [ $TEST_SUITE == "functional" ]; then ./tests/travis/functional.sh; fi;