diff --git a/.travis.yml b/.travis.yml index 6e5357c0..98217994 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ branches: - /.*/ php: - - 7 - 7.1 - 7.2 @@ -16,12 +15,10 @@ before_install: before_script: - composer self-update - composer install --no-interaction - - if [[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = 7.2 ]]; then composer global require --dev phpstan/phpstan:0.9.*; fi script: - mkdir build - composer check - - if [[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = 7.2 ]]; then ~/.composer/vendor/bin/phpstan analyse module/*/src/ --level=6 -c phpstan.neon; fi after_script: - vendor/bin/phpcov merge build --clover build/clover.xml diff --git a/composer.json b/composer.json index d961f5d5..eb6cd2a5 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "^7.0", + "php": "^7.1", "acelaya/ze-content-based-error-handler": "^2.0", "cocur/slugify": "^3.0", "doctrine/annotations": "^1.4", @@ -47,6 +47,7 @@ }, "require-dev": { "filp/whoops": "^2.0", + "phpstan/phpstan": "0.9", "phpunit/dbunit": "^3.0", "phpunit/phpcov": "^4.0", "phpunit/phpunit": "^6.0", @@ -84,6 +85,7 @@ "scripts": { "check": [ "@cs", + "@stan", "@test", "@func-test" ], @@ -97,13 +99,14 @@ "@test", "@func-test", "phpcov merge build --html build/html" - ] + ], + "stan": "phpstan analyse module/*/src/ --level=6 -c phpstan.neon" }, "config": { "process-timeout": 0, "sort-packages": true, "platform": { - "php": "7.0.8" + "php": "7.1.8" } } }