Skip to content
Snippets Groups Projects

[Docker/package] use prometheus cube and activate some metrics

Merged Arthur Lutz requested to merge topic/default/cubicweb-prometheus into branch/default
+ 10
54
image: python:3.7
default:
image: python:3.7
include:
- project: "open-source/gitlab-ci-templates"
ref: "branch/default"
file: # the stages are:
- "templates/no-duplicated-ci-pipelines.yml" # no stage
- "templates/lint/black.yml"
- "templates/lint/flake8.yml"
- "templates/lint/check-manifest.yml"
- "templates/lint/yamllint.yml"
- "templates/lint/mypy.yml"
- "templates/tests/py3.yml"
- "templates/build-docker-image.yml" # test and publish
- "templates/create-release-on-heptapod.yml" # release
- "templates/upload-to-pypi.yml" # release
stages:
- test
- lint
- tests
- release
- publish
- deploy
.test:
stage: test
before_script:
- pip install tox
check-manifest:
extends: .test
script: tox -e check-manifest
flake8:
extends: .test
rules:
- changes:
- "**/*.py"
script: tox -e flake8
py3:
extends: .test
script: tox -e py3
rules:
- changes:
- "**/*.py"
artifacts:
paths:
- py3-deprecated-warnings.json
black:
stage: test
rules:
- changes:
- "**/*.py"
script: tox -e black
mypy:
stage: test
rules:
- changes:
- "**/*.py"
script: tox -e mypy
yamllint:
extends: .test
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
deploy:
image:
name: registry.logilab.fr/logilab/infra/dockerfiles/kubectl
Loading