Skip to content

Commit e44bccb

Browse files
committed
Add prefer lowest dependencies builds
1 parent 7972a20 commit e44bccb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ cache:
1111
matrix:
1212
include:
1313
- php: 7.1
14+
- php: 7.1
15+
env:
16+
- deps=low
17+
- php: nightly
1418
- php: nightly
19+
env:
20+
- deps=low
1521
- php: hhvm
1622
- php: hhvm-nightly
1723
# Allow failures until Travis build includes HHVM 3.20.2 which fix the issue with composer (see http://hhvm.com/blog/2017/06/07/hhvm-3-20.html)
@@ -26,7 +32,8 @@ before_install:
2632

2733
install:
2834
- travis_retry composer require --dev --no-update squizlabs/php_codesniffer
29-
- travis_retry composer install --prefer-dist --no-interaction
35+
- if [ $deps != low ]; then travis_retry composer update --no-interaction --prefer-dist; fi;
36+
- if [ $deps == low ]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest; fi;
3037

3138
script:
3239
- vendor/bin/phpcs

0 commit comments

Comments
 (0)