File tree Expand file tree Collapse file tree 3 files changed +30
-18
lines changed Expand file tree Collapse file tree 3 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 44 tests :
55 override :
66 - php-scrutinizer-run
7+ tests :
8+ tests :
9+ override :
10+ - vendor/bin/simple-phpunit
711
812tools :
913 external_code_coverage :
Original file line number Diff line number Diff line change 11language : php
22
3- sudo : false
3+ git :
4+ depth : 2
45
56cache :
67 directories :
78 - $HOME/.composer/cache
89
10+ env :
11+ global :
12+ - COMPOSER_FLAGS=""
13+ - ENABLE_CODE_COVERAGE="no"
14+ - DEPENDENCIES=""
15+ - SYMFONY_VERSION=""
16+
917php :
1018 - 7.2
1119 - 7.3
1220 - 7.4
13- - 8.0
1421
1522services :
1623 - mongodb
1724
1825matrix :
1926 fast_finish : true
2027 include :
28+ # no flag build with code coverage:
29+ - php : 7.4
30+ env : ENABLE_CODE_COVERAGE="yes"
31+ # --ignore-platform-reqs for ruflin/elastica:6 which doesn't support PHP8
32+ - php : 8.0
33+ env : COMPOSER_FLAGS="--ignore-platform-reqs"
34+ - php : nightly
35+ env : COMPOSER_FLAGS="--ignore-platform-reqs"
36+ # normal build
2137 - php : 7.2
2238 env :
2339 - COMPOSER_FLAGS="--prefer-lowest"
2440 - SYMFONY_DEPRECATIONS_HELPER=weak
25- - php : 7.3
26- env :
27- - SYMFONY_VERSION=^4.4
28- - SYMFONY_DEPRECATIONS_HELPER=weak
2941 - php : 7.4
3042 env :
3143 - SYMFONY_VERSION=^4.4
3244 - SYMFONY_DEPRECATIONS_HELPER=weak
33- - php : 7.4
34- env :
35- - DEPENDENCIES=dev
36- - php : 8.0
45+ - php : 8.0snapshot
3746 env :
3847 - DEPENDENCIES=dev
39- - php : nightly
40- env :
4148 - COMPOSER_FLAGS="--ignore-platform-reqs"
4249 allow_failures :
43- - php : nightly
4450 - env : DEPENDENCIES=dev
4551
4652before_install :
@@ -50,14 +56,17 @@ before_install:
5056before_script :
5157 - set -eo pipefail
5258 - pecl install -f mongodb-stable
53- - composer update --no-interaction --ignore-platform-reqs --no-progress $COMPOSER_FLAGS
59+ - composer update --prefer-dist -- no-interaction --optimize-autoloader --no-progress $COMPOSER_FLAGS
5460
5561script :
56- - ./ vendor/bin/phpunit -v --coverage-text --coverage-clover=coverage.clover
62+ - if [[ "$ENABLE_CODE_COVERAGE" == "yes" ]]; then XDEBUG_MODE=coverage vendor/bin/simple- phpunit -v --coverage-text --coverage-clover=coverage.clover; else vendor/bin/simple-phpunit; fi;
5763
5864after_script :
59- - wget https://scrutinizer-ci.com/ocular.phar
60- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
65+ - |
66+ if [[ "$ENABLE_CODE_COVERAGE" == "yes" ]]; then
67+ wget https://scrutinizer-ci.com/ocular.phar
68+ php ocular.phar code-coverage:upload --format=php-clover coverage.clover
69+ fi
6170
6271# deploy:
6372# provider: script
Original file line number Diff line number Diff line change 4040 "mongodb/mongodb" : " ^1.2" ,
4141 "ocramius/package-versions" : " ^1.4" ,
4242 "phpoffice/phpspreadsheet" : " ^1.6" ,
43- "phpunit/phpunit" : " ^8.5|^9.0" ,
4443 "ruflin/elastica" : " ^6.0" ,
4544 "symfony/browser-kit" : " ^4.4|^5.0" ,
4645 "symfony/css-selector" : " ^4.4|^5.0" ,
You can’t perform that action at this time.
0 commit comments