Skip to content

Commit 852411f

Browse files
committed
Support PHPUnit 7, build with lowest and highest dependencies
1 parent 669990e commit 852411f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ php:
33
- 7.0
44
- 7.1
55
- 7.2
6+
env:
7+
- dependencies=lowest
8+
- dependencies=highest
69
before_script:
710
- composer self-update
8-
- composer install
11+
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi;
12+
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi;
913
script:
1014
- vendor/bin/phing
1115
after_script:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": "~7.0",
1414
"phpstan/phpstan": "^0.9.1",
15-
"phpunit/phpunit": "^6.3"
15+
"phpunit/phpunit": "^6.3 || ~7.0"
1616
},
1717
"require-dev": {
1818
"consistence/coding-standard": "^2.0",

0 commit comments

Comments
 (0)