Skip to content

Commit e7d4aeb

Browse files
authored
Use symfony/flex for speed and for limit symfony versions (#318)
1 parent a485b2e commit e7d4aeb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
- TEST_COMMAND="composer test"
1515
- SYMFONY_PHPUNIT_VERSION="6.5"
1616
- COMPOSER_MEMORY_LIMIT=-1
17+
- DEPENDENCIES=""
1718

1819
matrix:
1920
fast_finish: true
@@ -33,10 +34,9 @@ matrix:
3334

3435
# Force some major versions of Symfony
3536
- php: 7.2
36-
env: DEPENDENCIES="dunglas/symfony-lock:^3"
37+
env: SYMFONY_VERSION="3.*"
3738
- php: 7.2
38-
env: DEPENDENCIES="dunglas/symfony-lock:^4"
39-
39+
env: SYMFONY_VERSION="4.*"
4040

4141
# Latest commit to master
4242
- php: 7.2
@@ -49,11 +49,10 @@ matrix:
4949
before_install:
5050
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
5151
- 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;
5354

5455
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
5756
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
5857
- vendor/bin/simple-phpunit install
5958

@@ -65,6 +64,3 @@ after_success:
6564
- if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
6665
- if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
6766

68-
after_script:
69-
- wget http://tnyholm.se/reporter.phar
70-
- php reporter.phar build:upload

0 commit comments

Comments
 (0)