From a3e2faea37a2fd68c8d54063903be969460f8d42 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 2 Oct 2023 23:52:59 +0000 Subject: [PATCH] fix build scripts --- Helper/Scripts/testall.sh | 1 - Inspection/Php/style.sh | 2 +- php.sh | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Helper/Scripts/testall.sh b/Helper/Scripts/testall.sh index e7de773..d4f53ab 100644 --- a/Helper/Scripts/testall.sh +++ b/Helper/Scripts/testall.sh @@ -98,7 +98,6 @@ GITHUB[94]="https://github.com/Karaka-Management/oms-TestModule.git" GITHUB[95]="https://github.com/Karaka-Management/oms-Tools.git" GITHUB[96]="https://github.com/Karaka-Management/oms-WarehouseManagement.git" GITHUB[97]="https://github.com/Karaka-Management/oms-Workflow.git" -GITHUB[98]="https://github.com/Karaka-Management/Organization-Guide.git" GITHUB[99]="https://github.com/Karaka-Management/phpOMS.git" for i in "${GITHUB[@]}" diff --git a/Inspection/Php/style.sh b/Inspection/Php/style.sh index f665703..6086d35 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 || true +php ${TOOLS_PATH}/vendor/bin/phpcs --severity=1 ${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 process --dry-run --config ${BUILD_PATH}/Config/rector.php ${INSPECTION_PATH} > ${OUTPUT_PATH}/rector.log || true diff --git a/php.sh b/php.sh index 03a285f..3f104b2 100644 --- a/php.sh +++ b/php.sh @@ -35,7 +35,7 @@ mkdir -p "${OUTPUT_PATH}/metrics" if [[ ${BASE_NAME} == *"oms-"* ]]; then mkdir -p ${INSPECTION_PATH}/MainRepository - cp -R ${INSPECTION_PATH}/../Karaka/* ${INSPECTION_PATH}/MainRepository + cp -R ${INSPECTION_PATH}/../../Karaka/* ${INSPECTION_PATH}/MainRepository # git clone --recurse-submodules https://github.com/Karaka-Management/Karaka.git ${INSPECTION_PATH}/MainRepository # git -C ${INSPECTION_PATH}/MainRepository checkout develop # git -C ${INSPECTION_PATH}/MainRepository pull