forked from netz98/n98-magerun2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (60 loc) · 2.01 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
language: php
sudo: required
dist: bionic
services:
- mysql
branches:
only:
- master
- develop
- /^release\/.*$/
- /^(bugfix|feature)\/.*$/
env:
global:
- secure: "IEmCQNLHz63zsgcaVVbbeJDZ/Ayx58iJebr5zKDUN/Cbb5MZyW8WgQ5VIn3hlnJsPZrYLx0h3PPSqOB2qLKa02VQaljC50edjSVqT3UsIyC7S+xFA0Vnz492Lf6QFjO6ZiCOqtDiY4fPjOF16nyQO46V2tx4+2W7qVuGy6QHGZw="
- DB=mysql
matrix:
fast_finish: true
include:
# Lint PHP code with future PHP versions (forward compatibility)
- name: PHP 7.3 Lint
php: 7.3
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
- name: PHP 7.2 Lint
php: 7.2
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
# Magento Versions
- name: Magento 2.3.5 PHP 7.3
php: 7.3
env: MAGENTO_VERSION="magento-ce-2.3.5" INSTALL_SAMPLE_DATA=0
- name: Magento 2.3.4 PHP 7.3
php: 7.3
env: MAGENTO_VERSION="magento-ce-2.3.4" INSTALL_SAMPLE_DATA=0
# Run the cs-fixer and build script with different PHP versions
- name: PHP-CS Fixer PHP 7.2
php: 7.2
env: SCRIPT_JOB="PHP-CS-FIXER"
- name: PHP-CS Fixer PHP 7.3
php: 7.3
env: SCRIPT_JOB="PHP-CS-FIXER"
- name: Build SH
php: 7.3
env: SCRIPT_JOB="BUILDSH"
- name: Bash Autocomplete
php: 7.3
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:
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- source build/travis/before_script.sh
script:
- build/travis/script.sh