14
14
- TEST_COMMAND="composer test"
15
15
- SYMFONY_PHPUNIT_VERSION="6.5"
16
16
- COMPOSER_MEMORY_LIMIT=-1
17
+ - DEPENDENCIES=""
17
18
18
19
matrix :
19
20
fast_finish : true
@@ -33,10 +34,9 @@ matrix:
33
34
34
35
# Force some major versions of Symfony
35
36
- php : 7.2
36
- env : DEPENDENCIES="dunglas/symfony-lock:^3 "
37
+ env : SYMFONY_VERSION="3.* "
37
38
- php : 7.2
38
- env : DEPENDENCIES="dunglas/symfony-lock:^4"
39
-
39
+ env : SYMFONY_VERSION="4.*"
40
40
41
41
# Latest commit to master
42
42
- php : 7.2
@@ -49,11 +49,10 @@ matrix:
49
49
before_install :
50
50
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
51
51
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
52
- - if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
52
+ - composer require --no-update symfony/flex ${DEPENDENCIES}
53
+ - if ! [ -z "$SYMFONY_VERSION" ]; then composer config extra.symfony.require "${SYMFONY_VERSION}"; fi;
53
54
54
55
install :
55
- # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
56
- - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
57
56
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
58
57
- vendor/bin/simple-phpunit install
59
58
@@ -65,6 +64,3 @@ after_success:
65
64
- if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
66
65
- if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
67
66
68
- after_script :
69
- - wget http://tnyholm.se/reporter.phar
70
- - php reporter.phar build:upload
0 commit comments