@@ -46,6 +46,13 @@ commands:
46
46
command : |
47
47
sudo pecl install pcov-1.0.6
48
48
sudo docker-php-ext-enable pcov
49
+ install-symfony-flex :
50
+ steps :
51
+ - run :
52
+ name : Install Symfony Flex
53
+ command : |
54
+ composer global require --prefer-dist --no-progress --no-suggest --ansi \
55
+ symfony/flex
49
56
merge-code-coverage-reports :
50
57
parameters :
51
58
dir :
@@ -117,11 +124,11 @@ commands:
117
124
steps :
118
125
- save_cache :
119
126
paths :
120
- - ~/.composer/cache
127
+ - ~/.composer/cache/files
121
128
key : composer-cache-{{ .Branch }}-{{ .BuildNum }}
122
129
- save_cache :
123
130
paths :
124
- - ~/.composer/cache
131
+ - ~/.composer/cache/files
125
132
key : composer-cache-{{ .Revision }}-{{ .BuildNum }}
126
133
save-npm-cache :
127
134
steps :
@@ -201,27 +208,33 @@ executors:
201
208
php :
202
209
docker :
203
210
- image : circleci/php:7.3-node
211
+ environment :
212
+ SYMFONY_REQUIRE : ^3.4 || ^4.0
204
213
php-and-elasticsearch :
205
214
docker :
206
215
- image : circleci/php:7.3-node
207
- # https://github.com/elastic/elasticsearch-docker/issues/84
208
- - image : docker.elastic.co/elasticsearch/elasticsearch:6.7.2
216
+ environment :
217
+ SYMFONY_REQUIRE : ^3.4 || ^4.0
218
+ - image : docker.elastic.co/elasticsearch/elasticsearch:6.8.3 # https://github.com/elastic/elasticsearch/issues/43627
209
219
php-and-mongodb :
210
220
docker :
211
221
- image : circleci/php:7.3-node
222
+ environment :
223
+ SYMFONY_REQUIRE : ^3.4 || ^4.0
212
224
- image : circleci/mongo:4
213
225
214
226
jobs :
215
227
php-cs-fixer :
216
228
executor : php
217
229
environment :
218
- PHP_CS_FIXER_FUTURE_MODE : 1
230
+ PHP_CS_FIXER_FUTURE_MODE : ' 1 '
219
231
working_directory : ~/api-platform/core
220
232
steps :
221
233
- checkout
222
234
- disable-xdebug-php-extension
223
235
- disable-php-memory-limit
224
236
- restore-composer-cache
237
+ - install-symfony-flex
225
238
- run :
226
239
name : Install PHP-CS-Fixer
227
240
command : |
@@ -239,15 +252,15 @@ jobs:
239
252
phpstan :
240
253
executor : php
241
254
environment :
242
- # https://github.com/phpstan/phpstan-symfony/issues/37
243
- APP_DEBUG : 1
255
+ APP_DEBUG : ' 1' # https://github.com/phpstan/phpstan-symfony/issues/37
244
256
working_directory : ~/api-platform/core
245
257
steps :
246
258
- checkout
247
259
- install-mongodb-php-extension
248
260
- disable-xdebug-php-extension
249
261
- disable-php-memory-limit
250
262
- restore-composer-cache
263
+ - install-symfony-flex
251
264
- update-project-dependencies
252
265
- save-composer-cache
253
266
- clear-test-app-cache
@@ -268,6 +281,7 @@ jobs:
268
281
- disable-xdebug-php-extension
269
282
- disable-php-memory-limit
270
283
- restore-composer-cache
284
+ - install-symfony-flex
271
285
- update-project-dependencies
272
286
- save-composer-cache
273
287
- clear-test-app-cache
@@ -315,6 +329,7 @@ jobs:
315
329
- disable-xdebug-php-extension
316
330
- disable-php-memory-limit
317
331
- restore-composer-cache
332
+ - install-symfony-flex
318
333
- update-project-dependencies
319
334
- save-composer-cache
320
335
- clear-test-app-cache
@@ -360,6 +375,7 @@ jobs:
360
375
- disable-xdebug-php-extension
361
376
- disable-php-memory-limit
362
377
- restore-composer-cache
378
+ - install-symfony-flex
363
379
- update-project-dependencies
364
380
- save-composer-cache
365
381
- clear-test-app-cache
@@ -397,6 +413,7 @@ jobs:
397
413
- disable-xdebug-php-extension
398
414
- disable-php-memory-limit
399
415
- restore-composer-cache
416
+ - install-symfony-flex
400
417
- update-project-dependencies
401
418
- save-composer-cache
402
419
- clear-test-app-cache
@@ -440,6 +457,7 @@ jobs:
440
457
- disable-xdebug-php-extension
441
458
- disable-php-memory-limit
442
459
- restore-composer-cache
460
+ - install-symfony-flex
443
461
- update-project-dependencies
444
462
- save-composer-cache
445
463
- clear-test-app-cache
0 commit comments