diff --git a/.travis.yml b/.travis.yml index 4595318..06fe7f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,13 @@ php: - 7.0 - 7.1 - 7.2 +env: + - dependencies=lowest + - dependencies=highest before_script: - composer self-update - - composer install + - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi; + - if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi; script: - vendor/bin/phing after_script: diff --git a/composer.json b/composer.json index 32ec0a9..8d52e00 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": "~7.0", "phpstan/phpstan": "^0.9.1", - "phpunit/phpunit": "^6.3" + "phpunit/phpunit": "^6.3 || ~7.0" }, "require-dev": { "consistence/coding-standard": "^2.0",