forked from netz98/n98-magerun2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (73 loc) · 2.63 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
language: php
dist: trusty
sudo: required
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
branches:
only:
- master
- develop
- /^release\/.*$/
- /^(bugfix|feature)\/.*$/
php:
- 5.5
- 5.6
- 7.0
- 7.1
env:
global:
- secure: "IEmCQNLHz63zsgcaVVbbeJDZ/Ayx58iJebr5zKDUN/Cbb5MZyW8WgQ5VIn3hlnJsPZrYLx0h3PPSqOB2qLKa02VQaljC50edjSVqT3UsIyC7S+xFA0Vnz492Lf6QFjO6ZiCOqtDiY4fPjOF16nyQO46V2tx4+2W7qVuGy6QHGZw="
- DB=mysql
matrix:
- SCRIPT_JOB="PHP-CS-FIXER"
- SCRIPT_JOB="BUILDSH"
- SCRIPT_JOB="BASH-AUTOCOMPLETION"
- MAGENTO_VERSION="magento-ce-2.2.2" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.2
- MAGENTO_VERSION="magento-ce-2.1.9" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.1
- MAGENTO_VERSION="magento-ce-2.0.16" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.0
matrix:
fast_finish: true
exclude:
# Newer Magento versions uses newer PHP versions
- php: 5.6
env: MAGENTO_VERSION="magento-ce-2.2.2" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.2
- php: 5.5
env: MAGENTO_VERSION="magento-ce-2.2.2" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.2
- php: 5.5
env: MAGENTO_VERSION="magento-ce-2.1.9" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.1
# Old Magento versions cannot run in PHP 7.1
- php: 7.1
env: MAGENTO_VERSION="magento-ce-2.1.9" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.1
- php: 7.1
env: MAGENTO_VERSION="magento-ce-2.0.16" INSTALL_SAMPLE_DATA=0 PHPUNIT_EXCLUDE_GROUPS=exclude-2.0
include:
# Lint PHP code with future PHP versions (forward compatibility)
- php: 7.0
env: SCRIPT_JOB=LINTSH
script: find {src,tests} -name "*.php" ! -path '*/String.php' -print0 | xargs
-0 -n1 -P8 php -l | grep -v '^No syntax errors detected'; test $? -eq 1
- php: 7.1
env: SCRIPT_JOB=LINTSH
script: find {src,tests} -name "*.php" ! -path '*/String.php' -print0 | xargs
-0 -n1 -P8 php -l | grep -v '^No syntax errors detected'; test $? -eq 1
# Run the cs-fixer and build script with different PHP versions
- php: 7.1
env: SCRIPT_JOB="PHP-CS-FIXER"
- php: 7.1
env: SCRIPT_JOB="BUILDSH"
- php: 7.1
env: SCRIPT_JOB="BASH-AUTOCOMPLETION"
before_install:
- phpenv config-rm xdebug.ini
- travis_retry composer self-update
- travis_retry composer global require hirak/prestissimo
install:
- travis_retry composer install --prefer-dist --no-interaction --ignore-platform-reqs
before_script:
- source build/travis/before_script.sh
script:
- build/travis/script.sh