Генератор для cmake задаётся переменной окружения
This commit is contained in:
parent
7d6a15d63a
commit
dba70c08c7
@ -3,6 +3,8 @@ variables:
|
|||||||
GET_SOURCES_ATTEMPTS: 10
|
GET_SOURCES_ATTEMPTS: 10
|
||||||
|
|
||||||
.scheduled-test:
|
.scheduled-test:
|
||||||
|
variables:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
- if: $CI_MERGE_REQUEST_ID
|
- if: $CI_MERGE_REQUEST_ID
|
||||||
@ -41,7 +43,7 @@ variables:
|
|||||||
if [ -n "${CONFIGURE_CMD}" ]; then
|
if [ -n "${CONFIGURE_CMD}" ]; then
|
||||||
${CONFIGURE_CMD}
|
${CONFIGURE_CMD}
|
||||||
else
|
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
|
fi
|
||||||
- >
|
- >
|
||||||
if [ -n "${BUILD_CMD}" ]; then
|
if [ -n "${BUILD_CMD}" ]; then
|
||||||
@ -94,6 +96,8 @@ variables:
|
|||||||
tags: ['elbrus']
|
tags: ['elbrus']
|
||||||
|
|
||||||
.check-format-sources:
|
.check-format-sources:
|
||||||
|
variables:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
image: focal-dev
|
image: focal-dev
|
||||||
tags: ['docker']
|
tags: ['docker']
|
||||||
script:
|
script:
|
||||||
@ -103,7 +107,7 @@ variables:
|
|||||||
else
|
else
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -G Ninja ..
|
cmake ..
|
||||||
cmake --build . --target check-format-sources
|
cmake --build . --target check-format-sources
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user