Skip to content
Snippets Groups Projects
Commit 1459d8f8 authored by Dmitry Rodionov's avatar Dmitry Rodionov
Browse files

ci: do not run tests for patched picodata on every push

These tests are quire lengthy and are useful only when we changed the
patchset.

So run them always on master, and if `certification_patches` dir
contains any changes. Otherwise use `when: manual`
parent 6f0cee63
No related branches found
No related tags found
1 merge request!1050ci: do not run tests for patched picodata on every push
......@@ -251,20 +251,39 @@ test-linux:
reports:
junit: junit_pytest.xml
test-patch-picodata:
extends: .test
tags:
- docker
.test-patch-rules: &test-patch-rules
rules:
- <<: *if-build-base-changes-on-master-branch
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_TAG}
# build base didnt chage but we still want the job to run
- if: $CI_COMMIT_BRANCH == $MAIN_BRANCH
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_TAG}
- <<: *if-build-base-changes-on-dev-branch
when: manual
variables:
BASE_IMAGE_TAG: ${CI_COMMIT_SHA}
- <<: *else
# build base didnt change but we still want the job to run
# in case certification_patches has changed
- if: $CI_COMMIT_BRANCH != $MAIN_BRANCH
changes:
- certification_patches/**/*
allow_failure: true
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_LATEST}
# manual in other cases
- if: $CI_COMMIT_BRANCH != $MAIN_BRANCH
when: manual
allow_failure: true
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_LATEST}
test-patch-picodata:
extends: .test
tags:
- docker
<<: *test-patch-rules
variables:
GIT_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
......@@ -294,16 +313,7 @@ test-patch-tarantool:
extends: .test
tags:
- docker
rules:
- <<: *if-build-base-changes-on-master-branch
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_TAG}
- <<: *if-build-base-changes-on-dev-branch
variables:
BASE_IMAGE_TAG: ${CI_COMMIT_SHA}
- <<: *else
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_LATEST}
<<: *test-patch-rules
variables:
GIT_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment