File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 64
64
docker :
65
65
- image : algolia/magento2-circleci:2.3.0
66
66
67
+ " phpcompatibility " :
68
+ docker : # run the steps with Docker with PHP 7.2
69
+ - image : circleci/php:7.2
70
+ steps :
71
+ - checkout
72
+ - run : sudo composer self-update
73
+ - run : composer config http-basic.repo.magento.com ${MAGENTO_AUTH_USERNAME} ${MAGENTO_AUTH_PASSWORD}
74
+ - restore_cache :
75
+ keys :
76
+ - composer-v1-{{ checksum "composer.lock" }}
77
+ - composer-v1-
78
+ - run : composer install -n --prefer-dist --ignore-platform-reqs --no-progress
79
+ - save_cache :
80
+ key : composer-v1-{{ checksum "composer.lock" }}
81
+ paths :
82
+ - vendor
83
+ - run :
84
+ name : PHPCS PHPCompatibility
85
+ command : |
86
+ ./vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility/PHPCompatibility/
87
+ # vendor/ is large and seems to break phpcs, ls+grep+xargs hack is used to send folders to phpcs
88
+ ls -d */ | grep -vE 'dev|Test|vendor' | xargs ./vendor/bin/phpcs -p --standard=PHPCompatibility --runtime-set testVersion 7.1- --runtime-set ignore_warnings_on_exit true
89
+
67
90
workflows :
68
91
version : 2
69
92
build :
70
93
jobs :
71
94
- " magento-2.2"
72
95
- " magento-2.3"
96
+ - " phpcompatibility"
Original file line number Diff line number Diff line change 13
13
"ext-mbstring" : " *" ,
14
14
"ext-dom" : " *"
15
15
},
16
+ "repositories" : [
17
+ {
18
+ "type" : " composer" ,
19
+ "url" : " https://repo.magento.com/"
20
+ }
21
+ ],
22
+ "require-dev" : {
23
+ "phpcompatibility/php-compatibility" : " ^9.2"
24
+ },
16
25
"autoload" : {
17
26
"files" : [ " registration.php" ],
18
27
"psr-4" : {
You can’t perform that action at this time.
0 commit comments