Install PHPStan and PHPUnit via dev dependencies

This commit is contained in:
Dylan K. Taylor
2020-01-27 12:04:42 +00:00
parent 156ecd9bd8
commit 41d02003c2
4 changed files with 99 additions and 11 deletions

View File

@ -14,13 +14,6 @@ while getopts "p:t:" OPTION 2> /dev/null; do
esac
done
[ ! -f phpstan.phar ] && echo "Downloading PHPStan..." && curl -sSLO https://github.com/phpstan/phpstan/releases/download/0.12.8/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
#Run-the-server tests
DATA_DIR="test_data"
PLUGINS_DIR="$DATA_DIR/plugins"