Skip to content
Snippets Groups Projects
Commit 679e887c authored by David Schäfer's avatar David Schäfer
Browse files

Merge branch 'ci' into 'develop'

Ci

See merge request !481
parents f768ab41 78b34e6c
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!481Ci
Pipeline #96649 passed with stages
in 5 minutes and 48 seconds
......@@ -9,6 +9,11 @@
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- compliance
- test
- deploy
default:
image: python:3.8
before_script:
......@@ -16,35 +21,27 @@ default:
- pip install -r requirements.txt
- pip install -r tests/requirements.txt
# ===========================================================
# Testing stage
# Compliance stage
# ===========================================================
# check if everything is properly formatted
black:
stage: test
stage: compliance
script:
- pip install black
- black --check .
# check if imports are sorted
isort:
stage: test
stage: compliance
script:
- pip install isort
- isort --check .
# check if we are able to build a wheel
wheel:
stage: test
script:
- pip install wheel
- pip wheel .
# Check compliance with the REUSE specification
reuse_compliance:
stage: test
reuse:
stage: compliance
image:
name: fsfe/reuse:latest
entrypoint: [""]
......@@ -54,6 +51,10 @@ reuse_compliance:
- reuse lint
# ===========================================================
# Testing stage
# ===========================================================
# make (visual) coverage in gitlab merge request diff's
coverage:
stage: test
......@@ -107,6 +108,12 @@ python310:
reports:
junit: report.xml
# check if we are able to build a wheel
wheel:
stage: test
script:
- pip install wheel
- pip wheel .
# ===========================================================
# Extra Pipeline (run with a successful run of all other jobs on develop)
......
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