diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db11eb3..49c50ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,6 @@ test:7: - sh build/docker_install.sh > /dev/null - apk add --no-cache php7-phpdbg - curl -sS https://getcomposer.org/installer | php - - php composer.phar update --ignore-platform-reqs - php composer.phar install --ignore-platform-reqs image: php:7-alpine script: @@ -14,7 +13,6 @@ test:7.1: - sh build/docker_install.sh > /dev/null - apk add --no-cache php7.1-phpdbg - curl -sS https://getcomposer.org/installer | php - - php composer.phar update --ignore-platform-reqs - php composer.phar install --ignore-platform-reqs image: php:7.1-alpine script: diff --git a/build/phpunit.xml b/build/phpunit.xml index 8b7823a..a7401a9 100644 --- a/build/phpunit.xml +++ b/build/phpunit.xml @@ -4,7 +4,6 @@ stopOnFailure="false" bootstrap="../tests/bootstrap.php" beStrictAboutTestsThatDoNotTestAnything="true" - checkForUnintentionallyCoveredCode="true" > diff --git a/composer.json b/composer.json index b3d18d4..f244e5d 100644 --- a/composer.json +++ b/composer.json @@ -41,9 +41,10 @@ "phpstan/phpstan": "^0.6.4" }, "scripts": { - "coverage": "vendor/bin/phpunit -c build", + "coverage": "phpdbg -qrr -- vendor/bin/phpunit -c build", "build": "vendor/bin/robo build", "docs": "cd build && ../vendor/bin/phpdox && cd ..", + "phpstan": "phpstan analyse src tests", "test": "vendor/bin/phpunit" }, "suggest": {