Commit 6e9c49a2 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

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

parent 99f119f6e733
Pipeline #52848 passed with stages
in 2 minutes and 37 seconds
---
py27:
allow_failure: true # XXX
before_script:
- apt update && apt -y install redis-server libpython2.7-dev
- pip install tox
py3:
before_script:
- apt update && apt -y install redis-server libpython2.7-dev
- pip install tox
---
default:
image: python:3.7
include:
- 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/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/create-release-on-heptapod.yml" # this will create a release on heptapod
- "templates/upload-to-pypi.yml" # on a new mercurial tag (expected to be done with release-new), will push a release on pypi
- '.gitlab-ci-extended.yml'
stages:
- lint
- tests
flake8:
stage: lint
before_script:
- pip install tox
script: tox -e flake8
yamllint:
stage: lint
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
before_script:
- pip install tox
script:
- tox -e yamllint
py27:
stage: tests
before_script:
- apt update && apt -y install redis-server libpython2.7-dev
- pip install tox
script: tox -e py27
allow_failure: true # XXX
artifacts:
paths:
- py27-deprecated-warnings.json
py3:
stage: tests
before_script:
- apt update && apt -y install redis-server libpython3.7-dev
- pip install tox
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
- build-debian-package
- upload-deb-to-heptapod
- release
- publish
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