Skip to content
Snippets Groups Projects
Commit 3227c616982b authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: don't trigger most pipeline if the variable TRIGGERED_FROM_OTHER_PROJECT is present

parent d2262711e9c9
No related branches found
No related tags found
1 merge request!28feat: don't trigger most pipeline if the variable TRIGGERED_FROM_OTHER_PROJECT is present
Pipeline #118036 passed
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
black: black:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
tags: tags:
- lint - lint
- black - black
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
check-manifest: check-manifest:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
tags: tags:
- lint - lint
- check-manifest - check-manifest
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
flake8: flake8:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
tags: tags:
- lint - lint
- flake8 - flake8
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
mypy: mypy:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
tags: tags:
- lint - lint
- mypy - mypy
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
- yamllint - yamllint
stage: lint stage: lint
rules: rules:
- if: "$TRIGGERED_FROM_OTHER_PROJECT"
when: never
- changes: - changes:
- "**/*.yaml" - "**/*.yaml"
- "*.yaml" - "*.yaml"
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/bullseye-slim-pg13 image: ${CI_REGISTRY}/cubicweb/dockerfiles/bullseye-slim-pg13
stage: tests stage: tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
script: tox -e py3 -- --junitxml=report.xml script: tox -e py3 -- --junitxml=report.xml
tags: tags:
- tests - tests
......
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