Вызов команд через CMake

This commit is contained in:
Andrei Astafev 2020-06-26 04:32:24 +03:00
parent 9bd15d174f
commit 5d918af45c

View File

@ -47,16 +47,17 @@ variables:
if [ -n "${BUILD_CMD}" ]; then if [ -n "${BUILD_CMD}" ]; then
${BUILD_CMD} ${BUILD_CMD}
else else
ninja cmake --parallel --verbose --build .
fi fi
- > - >
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
if [ -n "${PACKAGE_CMD}" ]; then if [ -n "${PACKAGE_CMD}" ]; then
${PACKAGE_CMD} ${PACKAGE_CMD}
else else
ninja install cmake --verbose --install
ninja package cpack -G DEB
ninja package_source cpack -G TGZ
cpack --config CPackSourceConfig.cmake
fi fi
fi fi
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status" - echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"