Include subrepos for stricter phpstan settings
phpcs-errors:0 phpunit-status:successful phpstan-errors:547
This commit is contained in:
parent
155c8eb752
commit
4ca50fe6ab
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -19,3 +19,6 @@
|
||||||
[submodule "l10n/importer"]
|
[submodule "l10n/importer"]
|
||||||
path = l10n/importer
|
path = l10n/importer
|
||||||
url = gitea:museum-digital/translations-importer.git
|
url = gitea:museum-digital/translations-importer.git
|
||||||
|
[submodule "classes/MD_QA"]
|
||||||
|
path = classes/MD_QA
|
||||||
|
url = gitea:museum-digital/MD_QA.git
|
||||||
|
|
1
classes/MD_QA
Submodule
1
classes/MD_QA
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 10d575901625a2393e6c349df0a9a3e7b4dcbfac
|
|
@ -1,6 +1,10 @@
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"phpmailer/phpmailer": "^6.1",
|
"phpmailer/phpmailer": "^6.1",
|
||||||
"phpunit/phpunit": "^9.4"
|
"phpunit/phpunit": "^9.4",
|
||||||
|
"phpstan/phpstan": "^0.12.57",
|
||||||
|
"phpstan/phpstan-strict-rules": "^0.12.5",
|
||||||
|
"ergebnis/phpstan-rules": "^0.15.3",
|
||||||
|
"phpstan/phpstan-deprecation-rules": "^0.12.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ echo "phpcs-errors:$PHPCS_RESULT";
|
||||||
|
|
||||||
# Run PHPUnit
|
# Run PHPUnit
|
||||||
|
|
||||||
PHPUNIT_TEST_BASE_DIR="$SCRIPT_DIR/../csvxml.imports.museum-digital.org"
|
PHPUNIT_TEST_BASE_DIR="$SCRIPT_DIR/../"
|
||||||
|
|
||||||
$(php $PHPUNIT_TEST_BASE_DIR/vendor/bin/phpunit --stderr -c $PHPUNIT_TEST_BASE_DIR/tests/config.xml --testdox $PHPUNIT_TEST_BASE_DIR/tests)
|
$(php $PHPUNIT_TEST_BASE_DIR/vendor/bin/phpunit --stderr -c $PHPUNIT_TEST_BASE_DIR/tests/config.xml --testdox $PHPUNIT_TEST_BASE_DIR/tests)
|
||||||
PHPUNIT_EC=$?
|
PHPUNIT_EC=$?
|
||||||
|
@ -39,8 +39,8 @@ else
|
||||||
echo "phpunit-status:successful";
|
echo "phpunit-status:successful";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PHPSTAN_TEST_BASE_DIR="/var/www/vhosts/museum-digital.de/sandkasten.museum-digital.de"
|
PHPSTAN_TEST_BASE_DIR="$SCRIPT_DIR/../"
|
||||||
PHPSTAN_CONF_BASE_DIR="/var/www/vhosts/museum-digital.de/csvxml.imports.museum-digital.org"
|
PHPSTAN_CONF_BASE_DIR="$SCRIPT_DIR/../"
|
||||||
|
|
||||||
PHPSTAN_ERRORS=$(php $PHPSTAN_TEST_BASE_DIR/vendor/bin/phpstan analyze --error-format raw -c $PHPSTAN_CONF_BASE_DIR/phpstan.neon -l 8 | wc -l)
|
PHPSTAN_ERRORS=$(php $PHPSTAN_TEST_BASE_DIR/vendor/bin/phpstan analyze --error-format raw -c $PHPSTAN_CONF_BASE_DIR/phpstan.neon -l 8 | wc -l)
|
||||||
echo "phpstan-errors:$PHPSTAN_ERRORS"
|
echo "phpstan-errors:$PHPSTAN_ERRORS"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user