Compare commits

...

6 Commits

2 changed files with 19 additions and 13 deletions

View File

@ -4,12 +4,13 @@ include:
file: 'scheduled.yml' file: 'scheduled.yml'
smolensk15-nightly: smolensk15-nightly:
variables: # variables:
UPDATE_CMD: apt-get update # CMAKE_GENERATOR: Unix Makefiles
INSTALL_CMD: apt-get -y install cmake # UPDATE_CMD: apt-get update
CONFIGURE_CMD: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis .. # INSTALL_CMD: apt-get -y install cmake
BUILD_CMD: make -j$(nproc) # CONFIGURE_CMD: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
PACKAGE_CMD: tar zcf test.tar.gz # BUILD_CMD: make -j$(nproc)
# PACKAGE_CMD: tar zcf test.tar.gz
extends: .scheduled-smolensk15 extends: .scheduled-smolensk15
orel212-nightly: orel212-nightly:

View File

@ -3,8 +3,11 @@ 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_PIPELINE_SOURCE == "web"
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
when: manual when: manual
allow_failure: true allow_failure: true
@ -41,22 +44,22 @@ 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
${BUILD_CMD} ${BUILD_CMD}
else else
ninja -v all cmake --build . -- -j $(nproc)
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 -v install cmake --install .
ninja package cmake --build . --target package
ninja package_source cmake --build . --target package_source
fi fi
fi fi
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status" - echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
@ -94,6 +97,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 +108,7 @@ variables:
else else
mkdir build mkdir build
cd build cd build
cmake -G Ninja .. cmake ..
ninja check-format-sources cmake --build . --target check-format-sources
fi fi