Newer
Older
# Stage order
stages:
- pre-conditions
- test
- quality
################
# Test stage #
################
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
env:
- COMMAND="composer install"
- COMMAND="composer update"
Jaime Pérez Crespo
committed
before_script:
Jaime Perez Crespo
committed
script:
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
- php vendor/bin/phpunit --no-coverage
jobs:
fast_finish: true
allow_failures:
- php: 5.6
env: Psalm
- php: 5.6
env: Security check (composer install)
- php: 5.6
env: Security check (composer update)
- php: 5.6
env: PHP Codesniffer
include:
##########################
# Pre-conditions stage #
##########################
- stage: pre-conditions
php: 5.6
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
php: 7.0
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
php: 7.1
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
php: 7.2
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
php: 7.3
env: Syntax check PHP
before_script:
- composer install
script:
- vendor/bin/check-syntax-php.sh
- stage: pre-conditions
env: Syntax check YAML / XML / JSON
before_script:
- composer update
script:
- vendor/bin/check-syntax-yaml.sh
- vendor/bin/check-syntax-xml.sh
- vendor/bin/check-syntax-json.sh
###################
# Quality stage #
###################
- stage: quality
env: Security check (composer install)
before_script:
- composer install
script:
- vendor/bin/security-checker security:check
- stage: quality
env: Security check (composer update)
before_script:
- composer update
script:
- vendor/bin/security-checker security:check
- stage: quality
php: 7.2
env: Codecov
before_script:
- composer update
- php vendor/bin/phpunit
script:
# Codecov, need to edit bash uploader for incorrect TRAVIS_PYTHON_VERSION environment variable matching, at least until codecov/codecov-bash#133 is resolved
- curl -s https://codecov.io/bash > .codecov
- sed -i -e 's/TRAVIS_.*_VERSION/^TRAVIS_.*_VERSION=/' .codecov
- chmod +x .codecov
- ./.codecov -X gcov
# - <(curl -s https://codecov.io/bash)
- stage: quality
env: Psalm
before_script:
- composer update
script:
- vendor/bin/psalm
- stage: quality
env: PHP Codesniffer
before_script:
- composer update
script:
- vendor/bin/phpcs
notifications:
slack:
secure: h5YiO7tAk5bzAQBkUZ3crnOFAOBkNqHp0nc2cxvGauogVfCLE9K8bME512uTeu9QWMht2D30uyTOHFKQ7sPEW4omHNF4qYl4p9L037oQFfEwZPBzJFo9QUzviT3mvKHTN4HSQOkq/08ZoMhh1i3p/OhyFS56J28IDJWDqGZkEUE=