Commit 45f067ab authored by Laurent Peuch's avatar Laurent Peuch
Browse files

ci(gitlab-ci): use templates from a common repository

parent 11723004f76b
Pipeline #52972 waiting for manual action with stages
in 19 minutes and 51 seconds
# follow this doc to extend the already existing jobs:
# as a reminder the existing jobs are located here:
# or simply add more jobs here if you need them (use the already existing stages)
# /!\ remember to uncomment the include in the .gitlab-ci.yml /!\
--- ---
default: default:
image: python image: python:3.7
# 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"
- project: "open-source/gitlab-ci-templates"
ref: "branch/default"
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/lint/flake8.yml" # will do the equivalent of 'tox -e flake8'
- "templates/lint/black.yml" # will do the equivalent of 'tox -e black'
- "templates/lint/check-manifest.yml" # will do the equivalent of 'tox -e check-manifest'
- "templates/lint/mypy.yml" # will do the equivalent of 'tox -e mypy'
- "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/build-debian-package.yml" # will build a .deb and upload it to heptapod files
- "templates/create-release-on-heptapod-including-debian-package.yml" # this will create a release on heptapod AND uses uploaded .deb by build-debian-package
- "templates/upload-to-pypi.yml" # on a new mercurial tag (expected to be done with release-new), will push a release on pypi
stages: stages:
- lint - lint
- tests - tests
- after-tests - build-debian-package
- upload-deb-to-heptapod
before_script: - release
- pip install tox - publish
stage: tests
script: tox -e py3
- py3-deprecated-warnings.json
stage: tests
script: tox -e flake8
stage: tests
script: tox -e check-manifest
stage: tests
script: tox -e black
stage: tests
allow_failure: true
script: tox -e mypy
stage: lint
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
- tox -e yamllint
...@@ -13,3 +13,4 @@ exclude .gitlab-ci.yml ...@@ -13,3 +13,4 @@ exclude .gitlab-ci.yml
exclude tox.ini exclude tox.ini
exclude .yamllint exclude .yamllint
exclude .cube-doctor.yml exclude .cube-doctor.yml
exclude .gitlab-ci-extended.yml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment