Генератор для cmake задаётся переменной окружения

This commit is contained in:
Andrei Astafev 2021-06-30 16:36:43 +03:00
parent 7d6a15d63a
commit dba70c08c7

View File

@ -3,6 +3,8 @@ variables:
GET_SOURCES_ATTEMPTS: 10
.scheduled-test:
variables:
CMAKE_GENERATOR: Ninja
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_MERGE_REQUEST_ID
@ -41,7 +43,7 @@ variables:
if [ -n "${CONFIGURE_CMD}" ]; then
${CONFIGURE_CMD}
else
cmake -G Ninja -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
fi
- >
if [ -n "${BUILD_CMD}" ]; then
@ -94,6 +96,8 @@ variables:
tags: ['elbrus']
.check-format-sources:
variables:
CMAKE_GENERATOR: Ninja
image: focal-dev
tags: ['docker']
script:
@ -103,7 +107,7 @@ variables:
else
mkdir build
cd build
cmake -G Ninja ..
cmake ..
cmake --build . --target check-format-sources
fi