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

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

parent 47a816560b5f
No related branches found
No related tags found
1 merge request!17ci(gitlab-ci): use templates from a common repository
Pipeline #52960 waiting for manual action
---
# follow this doc to extend the already existing jobs:
# https://docs.gitlab.com/ee/ci/yaml/includes.html#overriding-external-template-values
# as a reminder the existing jobs are located here:
# https://forge.extranet.logilab.fr/open-source/gitlab-templates/
# 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:
image: python:3.7
......@@ -1,12 +2,20 @@
default:
image: python:3.7
before_script:
- pip install tox
flake8:
script: tox -e flake8
py27:
script: tox -e py27
include:
# 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"
file:
- "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/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/py27.yml" # will do the equivalent of 'tox -e py27'
- "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
......@@ -12,20 +21,8 @@
py3:
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
check-manifest:
script: tox -e check-manifest
yamllint:
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
stages:
- lint
- tests
- build-debian-package
- upload-deb-to-heptapod
- release
- publish
......@@ -17,3 +17,4 @@
exclude .gitlab-ci.yml
exclude .yamllint
exclude .cube-doctor.yml
exclude .gitlab-ci-extended.yml
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