Skip to content
Snippets Groups Projects
Commit 5bb84a04 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

CI: Merge_into_manifest: Fixes for merge detection

parent 285ce195
No related branches found
No related tags found
No related merge requests found
......@@ -30,27 +30,30 @@ workflow:
# ---------------------------------------------------------------------------------------
# Stage: analyze
# ---------------------------------------------------------------------------------------
pylint:
.analyze:
stage: analyze
rules:
- if: $CI_COMMIT_BRANCH == "master"
when: never
timeout: 2m
pylint:
extends: .analyze
script:
- pylint --rcfile=pylintrc *.py
black:
stage: analyze
timeout: 2m
extends: .analyze
script:
- black --diff --check *.py
executable:
stage: analyze
timeout: 2m
extends: .analyze
script:
- (! find ! -executable -name "*.py" -exec echo "not executable:"" {}" \; | grep .)
yamllint:
stage: analyze
timeout: 2m
extends: .analyze
script:
- yamllint -c .yamllint.yml *.yml .*.yml
......
......@@ -280,7 +280,7 @@ def is_commit_parent_of_project_commit(project: Project, project_commit, commit)
) from e
# The integration branch is up to date if its parent is the integration base
logging.debug(parent.id)
logging.debug("Compare '%s' and '%s'",parent.id, commit)
if parent.id == commit:
return True
if len(parent.parent_ids) == 0:
......
......@@ -132,7 +132,9 @@ def main():
gitlab = Gitlab(args.gitlab_url, private_token=args.token)
for p in args.projects + [args.project]:
# Start with the manifest here, so the subproject
# can see that they are already integrated
for p in [args.project] + args.projects:
project = common.get_project(gitlab, p)
branch = args.branch
......@@ -177,7 +179,7 @@ def main():
)
)
found = False
for p2 in args.projects + [args.project]:
for p2 in [args.project] + args.projects:
if p2 == p:
found = True
continue
......
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