mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Changes to test CI time with different images
This commit is contained in:
parent
5274bf9eb3
commit
45862d7cde
@ -13,7 +13,7 @@ variables:
|
|||||||
# https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
|
# https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
|
||||||
GIT_DEPTH: 3
|
GIT_DEPTH: 3
|
||||||
GIT_CLEAN_FLAGS: -f
|
GIT_CLEAN_FLAGS: -f
|
||||||
CACHE_IMAGE_TAG: c94d1580
|
CACHE_IMAGE_TAG: 2e969af5
|
||||||
|
|
||||||
default:
|
default:
|
||||||
# https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-pending-pipelines
|
# https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-pending-pipelines
|
||||||
@ -41,7 +41,7 @@ workflow:
|
|||||||
rules:
|
rules:
|
||||||
- if: $CI_MERGE_REQUEST_IID
|
- if: $CI_MERGE_REQUEST_IID
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $GITLAB_USER_ID != "8866215"
|
- if: $CI_COMMIT_BRANCH && $GITLAB_USER_ID != "8866215"
|
||||||
- if: $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ && $GITLAB_USER_ID != "8866215"
|
- if: $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ && $GITLAB_USER_ID != "8866215"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
|
@ -36,7 +36,7 @@ benchmarks:
|
|||||||
extends: .release
|
extends: .release
|
||||||
stage: build
|
stage: build
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/bench:${CACHE_IMAGE_TAG}
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/bench:${CACHE_IMAGE_TAG}
|
||||||
tags: ["veloren/veloren", "check", "benchmark"]
|
tags: ["time-test"]
|
||||||
script:
|
script:
|
||||||
- unset DISABLE_GIT_LFS_CHECK
|
- unset DISABLE_GIT_LFS_CHECK
|
||||||
- ln -s /dockercache/target target
|
- ln -s /dockercache/target target
|
||||||
|
@ -3,7 +3,7 @@ code-quality:
|
|||||||
extends: .recompile-branch
|
extends: .recompile-branch
|
||||||
stage: check
|
stage: check
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
||||||
tags: ["veloren/veloren", "check"]
|
tags: ["time-test"]
|
||||||
script:
|
script:
|
||||||
- ln -s /dockercache/target target
|
- ln -s /dockercache/target target
|
||||||
- cat ./.gitlab/scripts/code-quality.sh
|
- cat ./.gitlab/scripts/code-quality.sh
|
||||||
@ -13,7 +13,7 @@ security:
|
|||||||
extends: .recompile-branch
|
extends: .recompile-branch
|
||||||
stage: check
|
stage: check
|
||||||
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
||||||
tags: ["veloren/veloren", "check"]
|
tags: ["time-test"]
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- ln -s /dockercache/target target
|
- ln -s /dockercache/target target
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
# Template to only run if actual changes has been made to the code and not just documentation
|
# Template to only run if actual changes has been made to the code and not just documentation
|
||||||
.recompile-branch:
|
.recompile-branch:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- when: manual
|
||||||
# No '-' here is *very* important: https://docs.gitlab.com/ee/ci/yaml/#complex-rule-clauses
|
|
||||||
changes:
|
|
||||||
- "**/*.{glsl,png,rs,ron,toml,vox,yml,wav,sh}"
|
|
||||||
- "rust-toolchain"
|
|
||||||
- "Cargo.lock"
|
|
||||||
- ".gitlab-ci.yml"
|
|
||||||
|
|
||||||
# TODO: appears unused
|
# TODO: appears unused
|
||||||
# like .recompile-branch but will run on master too
|
# like .recompile-branch but will run on master too
|
||||||
@ -17,4 +11,4 @@
|
|||||||
- "**/*.{glsl,png,rs,ron,toml,vox,yml,wav,sh}"
|
- "**/*.{glsl,png,rs,ron,toml,vox,yml,wav,sh}"
|
||||||
- "rust-toolchain"
|
- "rust-toolchain"
|
||||||
- "Cargo.lock"
|
- "Cargo.lock"
|
||||||
- ".gitlab-ci.yml"
|
- ".gitlab-ci.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user