From 714f4dc023dde8e7455faa21ac135bb55ec34db2 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 5 Nov 2019 19:42:37 +0000 Subject: [PATCH] fortify CI with PHPStan --- tests/travis.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/travis.sh b/tests/travis.sh index 45d5672e4..a58341493 100755 --- a/tests/travis.sh +++ b/tests/travis.sh @@ -21,6 +21,10 @@ if [ $? -ne 0 ]; then exit 1 fi +[ ! -f phpstan.phar ] && echo "Downloading PHPStan..." && curl -sSLO https://github.com/phpstan/phpstan/releases/download/0.11.19/phpstan.phar +"$PHP_BINARY" phpstan.phar analyze --no-progress --memory-limit=2G || exit 1 +echo "PHPStan scan succeeded" + [ ! -f phpunit.phar ] && echo "Downloading PHPUnit..." && curl https://phar.phpunit.de/phpunit-7.phar --silent --location -o phpunit.phar "$PHP_BINARY" phpunit.phar --bootstrap vendor/autoload.php --fail-on-warning tests/phpunit || exit 1