Обобщённый пример сборки для qmake
This commit is contained in:
parent
f493b6fc27
commit
8e5d8923da
@ -74,6 +74,20 @@ variables:
|
|||||||
when: on_success
|
when: on_success
|
||||||
expire_in: 10 days
|
expire_in: 10 days
|
||||||
|
|
||||||
|
.qmake-scheduled-test:
|
||||||
|
extends: .scheduled-test
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
if [ -f "${CI_JOB_NAME}.status" ]; then
|
||||||
|
if [ "$(cat ${CI_JOB_NAME}.status)" == "${CI_COMMIT_SHA}" ]; then
|
||||||
|
echo "=== Commit ${CI_COMMIT_SHORT_SHA} already tested with job ${CI_JOB_NAME} ==="
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- rm -f ${CI_JOB_NAME}.status
|
||||||
|
- qmake -o ${CI_BUILD_DIR}
|
||||||
|
- make -j8 -C ${CI_BUILD_DIR}
|
||||||
|
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
||||||
|
|
||||||
.scheduled-mxe:
|
.scheduled-mxe:
|
||||||
extends: .scheduled-test
|
extends: .scheduled-test
|
||||||
@ -187,10 +201,7 @@ variables:
|
|||||||
${CUSTOM_ANALYZE_PVS}
|
${CUSTOM_ANALYZE_PVS}
|
||||||
else
|
else
|
||||||
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B ${CI_BUILD_DIR} .
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B ${CI_BUILD_DIR} .
|
||||||
cmake --build ${CI_BUILD_DIR} --parallel
|
|
||||||
pvs-studio-analyzer analyze -a 29 -f ${CI_BUILD_DIR}/compile_commands.json -j -o ${CI_BUILD_DIR}/PVS-Studio.log
|
pvs-studio-analyzer analyze -a 29 -f ${CI_BUILD_DIR}/compile_commands.json -j -o ${CI_BUILD_DIR}/PVS-Studio.log
|
||||||
ls -la
|
|
||||||
ls -la ${CI_BUILD_DIR}
|
|
||||||
plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile ${CI_BUILD_DIR}/PVS-Studio.log
|
plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile ${CI_BUILD_DIR}/PVS-Studio.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user