Тест
This commit is contained in:
parent
e92f4d1491
commit
2b33bd88e6
@ -5,6 +5,14 @@ variables:
|
|||||||
CI_BUILD_DIR: _build
|
CI_BUILD_DIR: _build
|
||||||
CI_OUTPUT_DIR: _output
|
CI_OUTPUT_DIR: _output
|
||||||
|
|
||||||
|
.add-ssh-key:
|
||||||
|
before_script:
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
- eval $(ssh-agent -s)
|
||||||
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
|
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||||
|
|
||||||
.use-clang:
|
.use-clang:
|
||||||
variables:
|
variables:
|
||||||
CXX: clang++-14
|
CXX: clang++-14
|
||||||
@ -13,17 +21,12 @@ variables:
|
|||||||
.use-ninja:
|
.use-ninja:
|
||||||
variables:
|
variables:
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
before_script:
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- chmod 700 ~/.ssh
|
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
|
||||||
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
|
|
||||||
.qmake-script:
|
.qmake-script:
|
||||||
variables:
|
variables:
|
||||||
QT_SELECT: qt5
|
QT_SELECT: qt5
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ -f "${CI_JOB_NAME}.status" ]; then
|
if [ -f "${CI_JOB_NAME}.status" ]; then
|
||||||
@ -41,6 +44,8 @@ variables:
|
|||||||
|
|
||||||
.cmake-script:
|
.cmake-script:
|
||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ -f "${CI_JOB_NAME}.status" ]; then
|
if [ -f "${CI_JOB_NAME}.status" ]; then
|
||||||
@ -86,6 +91,7 @@ variables:
|
|||||||
cache:
|
cache:
|
||||||
paths: ['*.status']
|
paths: ['*.status']
|
||||||
before_script:
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
- >
|
- >
|
||||||
if [ -f "${CI_JOB_NAME}.status" ]; then
|
if [ -f "${CI_JOB_NAME}.status" ]; then
|
||||||
if [ "$(cat ${CI_JOB_NAME}.status)" == "${CI_COMMIT_SHA}" ]; then
|
if [ "$(cat ${CI_JOB_NAME}.status)" == "${CI_COMMIT_SHA}" ]; then
|
||||||
@ -155,6 +161,8 @@ variables:
|
|||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
image: focal-dev
|
image: focal-dev
|
||||||
tags: ['format']
|
tags: ['format']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- cmake -B ${CI_BUILD_DIR} .
|
- cmake -B ${CI_BUILD_DIR} .
|
||||||
- cmake --build ${CI_BUILD_DIR} --target check-format-sources
|
- cmake --build ${CI_BUILD_DIR} --target check-format-sources
|
||||||
@ -163,6 +171,8 @@ variables:
|
|||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
image: focal-dev
|
image: focal-dev
|
||||||
tags: ['format']
|
tags: ['format']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- cmake -B ${CI_BUILD_DIR} .
|
- cmake -B ${CI_BUILD_DIR} .
|
||||||
- cmake --build ${CI_BUILD_DIR} --target myx-cmake-format-sources-check
|
- cmake --build ${CI_BUILD_DIR} --target myx-cmake-format-sources-check
|
||||||
@ -171,6 +181,8 @@ variables:
|
|||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
image: focal-dev
|
image: focal-dev
|
||||||
tags: ['format']
|
tags: ['format']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ -n "${CHECK_FORMAT_SOURCES_CMD}" ]; then
|
if [ -n "${CHECK_FORMAT_SOURCES_CMD}" ]; then
|
||||||
@ -181,6 +193,8 @@ variables:
|
|||||||
.qmake-analyze-pvs-studio:
|
.qmake-analyze-pvs-studio:
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- qmake ${QMAKE_PRO_FILE}
|
- qmake ${QMAKE_PRO_FILE}
|
||||||
- bear -- make -k -j$(nproc)
|
- bear -- make -k -j$(nproc)
|
||||||
@ -191,6 +205,8 @@ variables:
|
|||||||
extends: .use-clang
|
extends: .use-clang
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- qmake ${QMAKE_PRO_FILE}
|
- qmake ${QMAKE_PRO_FILE}
|
||||||
- bear -- make -k -j$(nproc)
|
- bear -- make -k -j$(nproc)
|
||||||
@ -200,6 +216,8 @@ variables:
|
|||||||
extends: .use-clang
|
extends: .use-clang
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- qmake ${QMAKE_PRO_FILE}
|
- qmake ${QMAKE_PRO_FILE}
|
||||||
- bear -- make -k -j$(nproc)
|
- bear -- make -k -j$(nproc)
|
||||||
@ -210,6 +228,8 @@ variables:
|
|||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ -n "${CUSTOM_ANALYZE_PVS}" ]; then
|
if [ -n "${CUSTOM_ANALYZE_PVS}" ]; then
|
||||||
@ -225,6 +245,8 @@ variables:
|
|||||||
extends: .use-clang
|
extends: .use-clang
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then
|
if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then
|
||||||
@ -239,6 +261,8 @@ variables:
|
|||||||
extends: .use-clang
|
extends: .use-clang
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ -n "${CUSTOM_ANALYZE_CLAZY}" ]; then
|
if [ -n "${CUSTOM_ANALYZE_CLAZY}" ]; then
|
||||||
@ -253,6 +277,8 @@ variables:
|
|||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- cmake -B ${CI_BUILD_DIR} .
|
- cmake -B ${CI_BUILD_DIR} .
|
||||||
- cmake --build ${CI_BUILD_DIR} --target myx-cmake-analyze-pvs-studio --parallel
|
- cmake --build ${CI_BUILD_DIR} --target myx-cmake-analyze-pvs-studio --parallel
|
||||||
@ -262,6 +288,8 @@ variables:
|
|||||||
extends: .use-clang
|
extends: .use-clang
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- cmake -B ${CI_BUILD_DIR} .
|
- cmake -B ${CI_BUILD_DIR} .
|
||||||
- cmake --build build --target myx-cmake-analyze-clang-tidy --parallel
|
- cmake --build build --target myx-cmake-analyze-clang-tidy --parallel
|
||||||
@ -270,6 +298,8 @@ variables:
|
|||||||
extends: .use-ninja
|
extends: .use-ninja
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
tags: ['analyze']
|
tags: ['analyze']
|
||||||
|
before_script:
|
||||||
|
- !reference [.add-ssh-key, before_script]
|
||||||
script:
|
script:
|
||||||
- cmake -B ${CI_BUILD_DIR} .
|
- cmake -B ${CI_BUILD_DIR} .
|
||||||
- cmake --build ${CI_BUILD_DIR} --target myx-cmake-analyze-clazy --parallel
|
- cmake --build ${CI_BUILD_DIR} --target myx-cmake-analyze-clazy --parallel
|
||||||
|
Loading…
Reference in New Issue
Block a user