FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 43da588d authored by Dr Rich Wareham's avatar Dr Rich Wareham
Browse files

feat: move to using the common CI pipeline

We now have a common CI pipeline which includes things like packaging
and publication to PyPI. Make use of it.
parent 2c2f49a5
No related branches found
No related tags found
No related merge requests found
Pipeline #404199 failed
include: include:
# Bring in the AutoDevOps template from GitLab. # Include the common project pipeline.
# It can be viewed at:
# https://gitlab.com/gitlab-org/gitlab-ee/blob/master/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
- template: Auto-DevOps.gitlab-ci.yml
# Overrides to AutoDevOps for testing
- project: "uis/devops/continuous-delivery/ci-templates"
ref: "v2.6.2"
file: "/auto-devops/tox-tests.yml"
# Allow publishing to pypi
- project: "uis/devops/continuous-delivery/ci-templates" - project: "uis/devops/continuous-delivery/ci-templates"
ref: "v2.6.2" ref: "v3.0.0"
file: "/pypi-release.yml" file: "/auto-devops/common-pipeline.yml"
variables: variables:
DOCUMENTATION_DISABLED: "1" DOCUMENTATION_DISABLED: "1"
DAST_DISABLED: "1" DAST_DISABLED: "1"
# ensure the coverage reports get picked up correctly # ensure the coverage reports get picked up correctly
test: python:tox:
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: ./artefacts/coverage.xml
variables:
TOX_ENVLIST: "black,flake8,py3"
pypi-release:
image: "${CI_REGISTRY_IMAGE}/${CI_COMMIT_BRANCH}:${CI_COMMIT_SHA}"
needs: ["build"]
variables: variables:
DIST_LOCATION: "/dist" TOX_ADDITIONAL_REQUIREMENTS: "poetry"
parallel:
matrix:
- TOX_OPTS: "-e $TOX_ENV"
TOX_ENV: [black,flake8,py3]
latest-spec: latest-spec:
image: python:3.10 image: python:3.10
......
...@@ -24,9 +24,11 @@ skipsdist=True ...@@ -24,9 +24,11 @@ skipsdist=True
build_root={env:TOXINI_ARTEFACT_DIR:{toxinidir}/build} build_root={env:TOXINI_ARTEFACT_DIR:{toxinidir}/build}
[testenv] [testenv]
# Additional dependencies skipinstall=True
deps= allowlist_externals=
-rtox-requirements.txt poetry
commands_pre=
poetry install --sync
# Which environment variables should be passed into the environment. # Which environment variables should be passed into the environment.
passenv= passenv=
# Allow people to override the coverage report location should they so wish. # Allow people to override the coverage report location should they so wish.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment