-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
70 lines (63 loc) · 1.86 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
sudo: required
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- postfix
language: php
jobs:
include:
- php: 7.2
env:
- MAGENTO_VERSION=2.3.2 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.2
env:
- MAGENTO_VERSION=2.3.2 MAGENTO_EDITION=enterprise
- php: 7.2
env:
- MAGENTO_VERSION=2.3.3-p1 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.2
env:
- MAGENTO_VERSION=2.3.3-p1 MAGENTO_EDITION=enterprise
- php: 7.2
env:
- MAGENTO_VERSION=2.3.4-p2 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.2
env:
- MAGENTO_VERSION=2.3.4-p2 MAGENTO_EDITION=enterprise
- php: 7.3
env:
- MAGENTO_VERSION=2.3.3-p1 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.3
env:
- MAGENTO_VERSION=2.3.3-p1 MAGENTO_EDITION=enterprise
- php: 7.3
env:
- MAGENTO_VERSION=2.3.4-p2 MAGENTO_EDITION=community
- if: type != pull_request
php: 7.3
env:
- MAGENTO_VERSION=2.3.4-p2 MAGENTO_EDITION=enterprise
before_install:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then composer config -g http-basic.repo.magento.com $MAGENTO_USERNAME $MAGENTO_PASSWORD ; fi
- echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > auth.json
- composer global require hirak/prestissimo
- chmod +x ./bin/*
- ./bin/prepare_php.sh
- ./bin/before_install.sh
install:
- composer install --prefer-dist
cache:
directories:
- $HOME/.composer/cache
script:
- ./bin/test_magento.sh
- vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/
- vendor/bin/phpcs --standard=Magento2 --severity=9 src/