Update CI scripts.

This commit is contained in:
James Cole 2021-04-06 17:00:00 +02:00
parent 69b1769f22
commit 8572280b7b
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
3 changed files with 15 additions and 2 deletions

View File

@ -10,6 +10,17 @@ parameters:
- '#is neither abstract nor final#' - '#is neither abstract nor final#'
- '#Control structures using switch should not be used\.#' - '#Control structures using switch should not be used\.#'
- '#has a nullable return type declaration#' - '#has a nullable return type declaration#'
- '#with a nullable type declaration#'
- '#with null as default value#'
- '#Constructor in [a-zA-Z0-9\\_]+ has parameter \$[a-zA-Z0-9\\_]+ with default value#'
-
message: '#Function compact\(\) should not be used.#'
paths:
- ../app/Support/Http/Controllers/RenderPartialViews.php
- ../app/Support/Form/FormSupport.php
- ../app/Support/Form/CurrencyForm.php
- ../app/Support/Form/AccountForm.php
- ../app/Support/ExpandedForm.php
paths: paths:
- ../app - ../app
- ../database - ../database

View File

@ -21,12 +21,13 @@
# #
# Install composer packages # Install composer packages
composer install --no-scripts --no-ansi #composer install --no-scripts --no-ansi
# enable test .env file. # enable test .env file.
cp .ci/.env.ci .env cp .ci/.env.ci .env
# Do static code analysis. # Do static code analysis.
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress # ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress
./vendor/bin/phpstan analyse -c .ci/phpstan.neon
exit 0 exit 0

View File

@ -24,6 +24,7 @@
cp .ci/.env.ci ../.env cp .ci/.env.ci ../.env
# download test database # download test database
# TODO no longer exists
wget --quiet https://raw.githubusercontent.com/firefly-iii/test-data/main/test_db.sqlite -o storage/database/test_db.sqlite wget --quiet https://raw.githubusercontent.com/firefly-iii/test-data/main/test_db.sqlite -o storage/database/test_db.sqlite
# run phpunit # run phpunit