forked from netz98/n98-magerun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (88 loc) · 3.27 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
94
95
96
language: php
sudo: false
branches:
only:
- master
- develop
- /^(bugfix|feature)\/.*$/
- interop
php:
- 5.3
- 5.4
- 5.5
env:
global:
- DB=mysql
matrix:
- MAGENTO_VERSION="magento-mirror-1.4.2.0" INSTALL_SAMPLE_DATA=yes
- MAGENTO_VERSION="magento-mirror-1.5.1.0" INSTALL_SAMPLE_DATA=yes
- MAGENTO_VERSION="magento-mirror-1.6.2.0" INSTALL_SAMPLE_DATA=yes
- MAGENTO_VERSION="magento-mirror-1.7.0.2" INSTALL_SAMPLE_DATA=yes
- MAGENTO_VERSION="magento-mirror-1.8.1.0" INSTALL_SAMPLE_DATA=yes
# Do not download sample data of 1.9 -> The file is too big
- MAGENTO_VERSION="magento-mirror-1.9.0.1" INSTALL_SAMPLE_DATA=no
- MAGENTO_VERSION="magento-mirror-1.9.1.1" INSTALL_SAMPLE_DATA=no
- MAGENTO_VERSION="magento-mirror-1.9.2.1" INSTALL_SAMPLE_DATA=no
- MAGENTO_VERSION="magento-mirror-1.9.2.2" INSTALL_SAMPLE_DATA=no
- MAGENTO_VERSION="magento-mirror-1.9.2.3" INSTALL_SAMPLE_DATA=no
- MAGENTO_VERSION="magento-mirror-1.9.2.4" INSTALL_SAMPLE_DATA=no
matrix:
fast_finish: true
exclude:
# Newer Magento versions uses newer PHP versions
- php: 5.3
env: MAGENTO_VERSION="magento-mirror-1.9.0.1" DB=mysql INSTALL_SAMPLE_DATA=no
- php: 5.3
env: MAGENTO_VERSION="magento-mirror-1.9.1.1" DB=mysql INSTALL_SAMPLE_DATA=no
- php: 5.3
env: MAGENTO_VERSION="magento-mirror-1.9.2.1" DB=mysql INSTALL_SAMPLE_DATA=no
- php: 5.3
env: MAGENTO_VERSION="magento-mirror-1.9.2.2" DB=mysql INSTALL_SAMPLE_DATA=no
- php: 5.3
env: MAGENTO_VERSION="magento-mirror-1.9.2.3" DB=mysql INSTALL_SAMPLE_DATA=no
- php: 5.3
env: MAGENTO_VERSION="magento-mirror-1.9.2.4" DB=mysql INSTALL_SAMPLE_DATA=no
# Old Magento Versions are not officially supported to run with PHP 5.5
- php: 5.5
env: MAGENTO_VERSION="magento-mirror-1.4.2.0" DB=mysql INSTALL_SAMPLE_DATA=yes
- php: 5.5
env: MAGENTO_VERSION="magento-mirror-1.5.1.0" DB=mysql INSTALL_SAMPLE_DATA=yes
- php: 5.5
env: MAGENTO_VERSION="magento-mirror-1.6.2.0" DB=mysql INSTALL_SAMPLE_DATA=yes
- php: 5.5
env: MAGENTO_VERSION="magento-mirror-1.7.0.2" DB=mysql INSTALL_SAMPLE_DATA=no
include:
# Lint PHP code with PHP 7.0
- php: 7.0
env: LINTSH=1
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 build script with different PHP versions
- php: 5.3
env: BUILDSH=1
script: ./build.sh
- php: 5.4
env: BUILDSH=1
script: ./build.sh
- php: 5.5
env: BUILDSH=1
script: ./build.sh
- php: 5.6
env: BUILDSH=1
script: ./build.sh
- php: 7.0
env: BUILDSH=1
script: ./build.sh
# Run with current PHP 5.6 and PHP 7.0 version
- php: 5.6
env: MAGENTO_VERSION="magento-mirror-1.9.2.4" DB=mysql INSTALL_SAMPLE_DATA=no
- php: 7.0
env: MAGENTO_VERSION="magento-mirror-1.9.2.4" DB=mysql INSTALL_SAMPLE_DATA=no
before_install:
- phpenv config-rm xdebug.ini
- travis_retry composer self-update
install:
- travis_retry composer install --prefer-source --no-interaction --ignore-platform-reqs
before_script:
- source build/travis/before_script.sh
script:
- vendor/bin/phpunit --debug --stop-on-error --stop-on-failure