Switch check to to phive installed tools, fix in phpunit bootsrap file

This commit is contained in:
Clemens Schwaighofer
2023-10-04 14:58:29 +09:00
parent c4c809be66
commit a304d29698
5 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/"; base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/";
# must be run in ${base}www/ # must be run in ${base}
$(cd "${base}"; phan --progress-bar -C --analyze-twice); cd $base;
${base}tools/phan --progress-bar -C --analyze-twice;
cd ~;

View File

@@ -1,3 +1,5 @@
base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/"; base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/";
# must be run in ${base}www/ # must be run in ${base}
$(cd "${base}"; phpstan); cd $base;
${base}tools/phpstan;
cd ~;

View File

@@ -34,7 +34,7 @@ if [ ! -z "${2}" ] && [ -z "${php_bin}" ]; then
fi; fi;
# Note 4dev/tests/bootstrap.php has to be set as bootstrap file in phpunit.xml # Note 4dev/tests/bootstrap.php has to be set as bootstrap file in phpunit.xml
phpunit_call="${php_bin}phpunit ${opt_testdox} -c ${base}phpunit.xml ${base}4dev/tests/"; phpunit_call="${php_bin}${base}tools/phpunit ${opt_testdox} -c ${base}phpunit.xml ${base}4dev/tests/";
${phpunit_call}; ${phpunit_call};

View File

@@ -1,7 +1,7 @@
<?php <?php
$set = 0; $set = 0;
foreach (['/../..', '/..', '/../../www', '/../www'] as $src) { foreach (['/../../www', '/../www', '/../..', '/..', '/../../src', '/../src'] as $src) {
if (is_file(dirname(__DIR__) . $src . '/vendor/autoload.php')) { if (is_file(dirname(__DIR__) . $src . '/vendor/autoload.php')) {
require dirname(__DIR__) . $src . '/vendor/autoload.php'; require dirname(__DIR__) . $src . '/vendor/autoload.php';
$set = 1; $set = 1;

View File

@@ -53,6 +53,6 @@ parameters:
# paths: # paths:
# - ... # - ...
# - ... # - ...
- #-
message: "#^Call to deprecated method #" # message: "#^Call to deprecated method #"
path: www/admin/class_test*.php # path: www/admin/class_test*.php