Skip to content

Commit 86703ba

Browse files
committed
Install composer dependencies on hhvm / nightly anyway
Allows the installation of php-cs-fixer even though it conflicts with hhvm / nightly. It's not actually used under these platforms, but is listed in require-dev.
1 parent 328a299 commit 86703ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ before_install:
2626
- composer selfupdate
2727

2828
install:
29-
- travis_retry composer install --no-interaction --prefer-dist
29+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "nightly" ]]; then travis_retry composer install --no-interaction --prefer-dist; else travis_retry composer install --no-interaction --prefer-dist --ignore-platform-reqs; fi
3030

3131
script:
3232
- if [[ "$WITH_COVERAGE" == "true" ]]; then ./vendor/bin/phpunit --coverage-text; else composer test; fi
33-
- if [[ "$WITH_PHPCSFIXER" == "true" ]]; then composer require friendsofphp/php-cs-fixer:^2.1 && mkdir -p $HOME/.phpcsfixer && vendor/bin/php-cs-fixer fix --cache-file "$HOME/.phpcsfixer/.php_cs.cache" --dry-run --diff --verbose; fi
33+
- if [[ "$WITH_PHPCSFIXER" == "true" ]]; then mkdir -p $HOME/.phpcsfixer && vendor/bin/php-cs-fixer fix --cache-file "$HOME/.phpcsfixer/.php_cs.cache" --dry-run --diff --verbose; fi

0 commit comments

Comments
 (0)