Run check jobs on merge request against default branch
(grafted from 31011a740cb39bc374892e3d27a19c8181b4cb2e) --HG-- branch : 6.0
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user