mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Push better PHPStan config.
This commit is contained in:
parent
d3daf8d61e
commit
749236bc8d
@ -14,7 +14,6 @@ parameters:
|
|||||||
- ../database
|
- ../database
|
||||||
- ../resources
|
- ../resources
|
||||||
- ../routes
|
- ../routes
|
||||||
- ../tests
|
|
||||||
- ../bootstrap/app.php
|
- ../bootstrap/app.php
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,14 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
FF_DIR=$PWD
|
# Install composer packages
|
||||||
|
composer install --no-suggest --no-scripts --no-ansi
|
||||||
|
|
||||||
# single line install command
|
# Do static code analysis.
|
||||||
composer global require hirak/prestissimo \
|
./vendor/bin/phpstan analyse -c .ci/phpstan.neon > phpstan.txt
|
||||||
--no-plugins --no-scripts
|
|
||||||
|
|
||||||
cd $FF_DIR
|
|
||||||
|
|
||||||
echo "Changed back to '$FF_DIR'"
|
|
||||||
|
|
||||||
composer install
|
|
||||||
./vendor/bin/phpstan analyse -c .ci/phpstan.neon
|
|
||||||
|
15
.travis.yml
15
.travis.yml
@ -1,20 +1,21 @@
|
|||||||
language: php
|
language: php
|
||||||
php:
|
php:
|
||||||
- '7.4'
|
- '7.4'
|
||||||
dist: xenial
|
dist: xenial
|
||||||
os: linux
|
os: linux
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- /home/travis/.config
|
- "/home/travis/.config"
|
||||||
- /home/travis/build/firefly-iii/firefly-iii/vendor
|
- "/home/travis/build/firefly-iii/firefly-iii/vendor"
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
before_script:
|
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:
|
script:
|
||||||
- ./.ci/phpstan.sh
|
- "./.ci/phpstan.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user