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

ci: use templates in .gitlab-ci.yml

parent f9260d37020a
No related branches found
No related tags found
1 merge request!75ci: use templates in .gitlab-ci.yml
Pipeline #124009 passed
......@@ -7,7 +7,13 @@
ref: "branch/default"
file:
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/create-release-on-heptapod.yml" # this will create a release on heptapod AND uses uploaded .deb by build-debian-package
- "templates/lint/black.yml" # will do the equivalent of 'tox -e black'
- "templates/lint/flake8.yml" # will do the equivalent of 'tox -e flake8'
- "templates/lint/mypy.yml" # will do the equivalent of 'tox -e mypy'
- "templates/lint/check-manifest.yml" # will do the equivalent of 'tox -e check-manifest'
- "templates/lint/yamllint.yml" # will do the equivalent of 'tox -e yamllint'
- "templates/tests/py3.yml" # will do the equivalent of 'tox -e py3'
- "templates/create-release-on-heptapod.yml" # this will create a release on heptapod
# uncomment and uses to customize/extend the configuration here if needed
# (it needs to be at the same level than "- project")
# - ".gitlab-ci-extended.yml"
......@@ -19,59 +25,6 @@
- release
- publish
flake8:
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: lint
script: tox -e flake8
black:
stage: lint
rules:
- if: $TRIGGERED_FROM_OTHER_PROJECT
when: never
- changes:
- "**/*.py"
script: tox -e black
mypy:
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: lint
script: tox -e mypy
check-manifest:
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: lint
script: tox -e check-manifest
yamllint:
stage: lint
rules:
- if: $TRIGGERED_FROM_OTHER_PROJECT
when: never
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
py3:
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: tests
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
py3-from-forge:
stage: tests
script: tox -e py3-from-forge
......
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