Skip to content

Commit fe93fc4

Browse files
committed
Also test lowest possible package combinations
1 parent d27c049 commit fe93fc4

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.travis.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
language: php
22

3-
php:
4-
- 5.6
5-
- 7.0
6-
- 7.1
7-
- 7.2
3+
matrix:
4+
include:
5+
- php: 5.6
6+
- php: 5.6
7+
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
8+
- php: 7.0
9+
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
10+
- php: 7.1
11+
- php: 7.1
12+
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
13+
env: COVERAGE='--coverage-clover build/logs/clover.xml'
14+
- php: 7.2
15+
- php: 7.2
16+
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
17+
fast_finish: true
818

919
sudo: false
1020

1121
before_script:
12-
- travis_wait composer install --no-interaction
22+
- travis_wait composer update --no-interaction $COMPOSER_FLAGS
1323

1424
script:
15-
- mkdir -p build/logs
16-
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
25+
- if [[ $COVERAGE ]]; then mkdir -p build/logs; fi
26+
- php vendor/bin/phpunit $COVERAGE
1727

1828
after_script:
19-
- php vendor/bin/coveralls
29+
- if [[ $COVERAGE ]]; then php vendor/bin/coveralls; fi

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^2.6",
21-
"phpunit/phpunit": "^5.7",
21+
"phpunit/phpunit": "^5.7.25",
2222
"satooshi/php-coveralls": "2.0.x-dev"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)