Run check jobs on merge request against default branch

(grafted from 31011a740cb39bc374892e3d27a19c8181b4cb2e)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2022-12-31 13:28:13 +01:00
parent 4bf04e22c7
commit 59f80b71a2
+7 -4
View File
@@ -32,9 +32,6 @@ documentation:
.check:
stage: check
rules:
- if: $CI_MERGE_REQUEST_ID != null
when: always
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/tryton/ci
.check-doc:
@@ -63,8 +60,14 @@ check-doc-readthedocs:
- changes:
- ${PACKAGE}/**/*
check-flake8:
.check-code:
extends: .check
rules:
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
when: always
check-flake8:
extends: .check-code
script:
- hg diff --rev s0 | flake8 --diff