Commit 5bedcf7a authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

ci: use templates

parent 48e18c53d743
......@@ -5,50 +5,26 @@ include:
ref: "branch/default"
file: # the stages are:
- "templates/no-duplicated-ci-pipelines.yml" # no stage
- "templates/lint/black.yml" # lint
- "templates/lint/check-manifest.yml" # lint
- "templates/lint/flake8.yml" # lint
- "templates/lint/mypy.yml" # lint
- "templates/lint/yamllint.yml" # lint
- "templates/tests/py3.yml" # test
- "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
script: tox -e flake8
py3:
extends: .test
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
yamllint:
extends: .test
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
deploy:
image:
name: lachlanevenson/k8s-kubectl:latest
name: registry.logilab.fr/logilab/infra/dockerfiles/kubectl
stage: deploy
rules:
- if: '$CI_COMMIT_REF_NAME == "branch/default"'
......
.tox/
cubicweb_fresh.egg-info/
[tox]
envlist = py3,flake8,check-manifest,yamllint
[pytest]
python_files = *test_*.py
testpaths = test
addopts = -r fEs
[testenv]
deps =
-rdev-requirements.txt
commands =
{envpython} -m pytest {posargs}
[testenv:black]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
commands = black --check .
[testenv:black-run]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
commands = black .
[testenv:check-manifest]
skip_install = true
skipsdist = true
......@@ -15,11 +34,6 @@ deps =
commands =
{envpython} -m check_manifest
[pytest]
python_files = *test_*.py
testpaths = test
addopts = -r fEs
[testenv:flake8]
basepython = python3
skip_install = true
......
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