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