Commit 0ee65212 authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

ci: use gitlab-ci-templates

parent 41f14ffed31e
image: python
---
default:
image: python:3.7
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/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/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:
- lint
- tests
- after-tests
before_script:
- pip install tox
py3:
stage: tests
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
flake8:
stage: tests
script: tox -e flake8
check-manifest:
stage: tests
script: tox -e check-manifest
black:
stage: tests
script: tox -e black
mypy:
stage: tests
script: tox -e mypy
- build-debian-package
- upload-deb-to-heptapod
- release
- publish
trigger-cubicweb-pipeline:
stage: after-tests
......@@ -111,14 +108,3 @@ trigger-readthedocs:
script:
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
- curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/logilab-common/89595/ -w "\nhttp code:"\ "%{http_code}\n" -f
yamllint:
stage: lint
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
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