Commit 79db2927 authored by Arthur Lutz's avatar Arthur Lutz

[.gitlab-ci] use templates

parent 2923be28c5b0
Pipeline #58613 passed with stages
in 11 minutes and 4 seconds
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
......
......@@ -44,7 +44,7 @@ spec:
app: intranet
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9117'
prometheus.io/port: '8000'
spec:
imagePullSecrets:
- name: regcred-crm
......
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