forked from lexik/LexikMaintenanceBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
59 lines (53 loc) · 1.58 KB
/
.gitlab-ci.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
cache:
key:
files:
- composer.lock
paths:
- $HOME/.composer/cache
before_script:
- bash ci/docker_install.sh > /dev/null
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev symfony/symfony:${SYMFONY_VERSION} --no-update; fi
- composer update $COMPOSER_FLAGS
test:7.2:
image: php:7.2
variables:
SYMFONY_VERSION: '4.*'
SYMFONY_DEPRECATIONS_HELPER: 'disabled'
XDEBUG: '2.8.1'
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- ./vendor/bin/phpunit --colors=never -c phpunit.old.xml
- ./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff
test:7.3:
image: php:7.3
variables:
SYMFONY_VERSION: '5.*'
SYMFONY_DEPRECATIONS_HELPER: 'disabled'
XDEBUG: '2.8.1'
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- ./vendor/bin/phpunit --colors=never
- ./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff
test:7.4:
image: php:7.4
variables:
SYMFONY_VERSION: '5.*'
SYMFONY_DEPRECATIONS_HELPER: 'disabled'
XDEBUG: '2.8.1'
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- ./vendor/bin/phpunit --colors=never
- ./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff
test:8.0:
image: php:8.0
variables:
SYMFONY_VERSION: '6.*'
SYMFONY_DEPRECATIONS_HELPER: 'disabled'
XDEBUG: '3.0.0'
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- ./vendor/bin/phpunit --colors=never
- ./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff