Push better PHPStan config.

This commit is contained in:
James Cole 2020-07-31 19:10:02 +02:00
parent d3daf8d61e
commit 749236bc8d
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
3 changed files with 12 additions and 19 deletions

View File

@ -14,7 +14,6 @@ parameters:
- ../database
- ../resources
- ../routes
- ../tests
- ../bootstrap/app.php

View File

@ -1,14 +1,7 @@
#!/usr/bin/env bash
FF_DIR=$PWD
# Install composer packages
composer install --no-suggest --no-scripts --no-ansi
# single line install command
composer global require hirak/prestissimo \
--no-plugins --no-scripts
cd $FF_DIR
echo "Changed back to '$FF_DIR'"
composer install
./vendor/bin/phpstan analyse -c .ci/phpstan.neon
# Do static code analysis.
./vendor/bin/phpstan analyse -c .ci/phpstan.neon > phpstan.txt

View File

@ -1,20 +1,21 @@
language: php
php:
- '7.4'
- '7.4'
dist: xenial
os: linux
cache:
directories:
- /home/travis/.config
- /home/travis/build/firefly-iii/firefly-iii/vendor
- "/home/travis/.config"
- "/home/travis/build/firefly-iii/firefly-iii/vendor"
branches:
only:
- develop
- develop
before_script:
- phpenv config-rm xdebug.ini || return 0
- phpenv config-rm xdebug.ini || return 0
- composer global require hirak/prestissimo --no-plugins --no-scripts
script:
- ./.ci/phpstan.sh
- "./.ci/phpstan.sh"