diff --git a/Helper/Scripts/cloneall.sh b/Helper/Scripts/cloneall.sh index c2a3cb7..15ae18b 100644 --- a/Helper/Scripts/cloneall.sh +++ b/Helper/Scripts/cloneall.sh @@ -8,4 +8,5 @@ curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" | find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git checkout develop" \; find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git submodule foreach 'git checkout develop || true'" \; +find ./src -maxdepth 1 -type d \( ! -name . \) -exec bash -c "git -C '{}' pull" \; find ./src -maxdepth 1 -type d \( ! -name . \) -exec bash -c "Build/php.sh '{}' '{}/build'" \; \ No newline at end of file diff --git a/Inspection/Php/security.sh b/Inspection/Php/security.sh index 381821e..6e06cc1 100755 --- a/Inspection/Php/security.sh +++ b/Inspection/Php/security.sh @@ -46,4 +46,4 @@ do done # PHP strict type -grep -r -L "declare(strict_types=1);" --include=*.php --exclude={*.tpl.php,*Hooks.php,*Routes.php,*SearchCommands.php} ${INSPECTION_PATH} > ${OUTPUT_PATH}/strict_missing_php.log +grep -r -L "declare(strict_types=1);" --include=*.php --exclude={*.tpl.php,*Hooks.php,*Routes.php,*SearchCommands.php} ${INSPECTION_PATH} > ${OUTPUT_PATH}/strict_missing_php.log || true diff --git a/Inspection/Php/stats.sh b/Inspection/Php/stats.sh index 8e07be8..169b898 100755 --- a/Inspection/Php/stats.sh +++ b/Inspection/Php/stats.sh @@ -7,5 +7,5 @@ echo "Start php stats inspection" echo "#################################################" # -php ${TOOLS_PATH}/vendor/bin/phploc ${INSPECTION_PATH} > ${OUTPUT_PATH}/phploc.log -php ${TOOLS_PATH}/vendor/bin/phpmetrics --config=${BUILD_PATH}/Config/phpmetrics.json --report-html=${OUTPUT_PATH}/metrics ${INSPECTION_PATH} \ No newline at end of file +php ${TOOLS_PATH}/vendor/bin/phploc ${INSPECTION_PATH} > ${OUTPUT_PATH}/phploc.log || true +php ${TOOLS_PATH}/vendor/bin/phpmetrics --config=${BUILD_PATH}/Config/phpmetrics.json --report-html=${OUTPUT_PATH}/metrics ${INSPECTION_PATH} || true \ No newline at end of file diff --git a/Inspection/Php/style.sh b/Inspection/Php/style.sh index 1823df9..4fe8821 100755 --- a/Inspection/Php/style.sh +++ b/Inspection/Php/style.sh @@ -6,6 +6,6 @@ echo "#################################################" echo "Start php style inspection" echo "#################################################" -php ${TOOLS_PATH}/vendor/bin/phpcs ${INSPECTION_PATH} --standard="${BUILD_PATH}/Config/phpcs.xml" -s --report-full=${OUTPUT_PATH}/phpcs.log --report-junit=${OUTPUT_PATH}/phpcs.xml +php ${TOOLS_PATH}/vendor/bin/phpcs ${INSPECTION_PATH} --standard="${BUILD_PATH}/Config/phpcs.xml" -s --report-full=${OUTPUT_PATH}/phpcs.log --report-junit=${OUTPUT_PATH}/phpcs.xml || true -php ${TOOLS_PATH}/vendor/bin/rector --dry-run --config ${BUILD_PATH}/Config/rector.php process ${INSPECTION_PATH} > ${OUTPUT_PATH}/rector.log +php ${TOOLS_PATH}/vendor/bin/rector --dry-run --config ${BUILD_PATH}/Config/rector.php process ${INSPECTION_PATH} > ${OUTPUT_PATH}/rector.log || true diff --git a/Inspection/Php/tests.sh b/Inspection/Php/tests.sh index adc15cd..9e27e42 100755 --- a/Inspection/Php/tests.sh +++ b/Inspection/Php/tests.sh @@ -6,13 +6,13 @@ echo "#################################################" echo "Start php unit tests inspection" echo "#################################################" -php -d pcov.enabled=1 ${TOOLS_PATH}/vendor/bin/phpunit -v --configuration ${INSPECTION_PATH}/tests/phpunit_default.xml --log-junit ${OUTPUT_PATH}/junit_php.xml --testdox-html ${OUTPUT_PATH}/phpunit/index.html --coverage-html ${OUTPUT_PATH}/coverage --coverage-clover ${OUTPUT_PATH}/coverage.xml > ${OUTPUT_PATH}/phpunit.log +php -dpcov.enabled=1 -dxdebug.mode=coverage ${TOOLS_PATH}/vendor/bin/phpunit -v --configuration ${INSPECTION_PATH}/tests/phpunit_default.xml --log-junit ${OUTPUT_PATH}/junit_php.xml --testdox-html ${OUTPUT_PATH}/phpunit/index.html --coverage-html ${OUTPUT_PATH}/coverage --coverage-clover ${OUTPUT_PATH}/coverage.xml > ${OUTPUT_PATH}/phpunit.log || true echo "#################################################" echo "Start php static inspection" echo "#################################################" -php -d memory_limit=4G ${TOOLS_PATH}/vendor/bin/phpstan analyse --no-progress -l 9 -c ${BUILD_PATH}/Config/phpstan.neon ${INSPECTION_PATH} +php -d memory_limit=4G ${TOOLS_PATH}/vendor/bin/phpstan analyse --no-progress -l 9 -c ${BUILD_PATH}/Config/phpstan.neon ${INSPECTION_PATH} || true # Cli debugging # php -dzend_extension=xdebug.so -dxdebug.mode=debug -dxdebug.profiler_enable=1 \ No newline at end of file diff --git a/Inspection/inspect.sh b/Inspection/inspect.sh index 6545bc4..acc623b 100755 --- a/Inspection/inspect.sh +++ b/Inspection/inspect.sh @@ -73,7 +73,7 @@ echo "#################################################" php ${TOOLS_PATH}/TestReportGenerator/src/index.php \ -b ${INSPECTION_PATH} \ -l ${BUILD_PATH}/Config/reportLang.php \ --s ${OUTPUT_PATH}/junit_phpcs.xml \ +-s ${OUTPUT_PATH}/phpcs.xml \ -sj ${OUTPUT_PATH}/junit_eslint.xml \ -a ${OUTPUT_PATH}/phpstan.json \ -c ${OUTPUT_PATH}/coverage.xml \