mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
ensure script continuation
This commit is contained in:
parent
6258b9259e
commit
ee64336497
|
|
@ -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'" \;
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user