feature(ci): add testing and coverage data to gitlab ci artifacts
This commit is contained in:
parent
b9bbe3f1d4
commit
c807a81a57
@ -15,8 +15,9 @@ lint:
|
||||
changes:
|
||||
- keyringctl
|
||||
- libkeyringctl/*
|
||||
- test/*
|
||||
- tests/*
|
||||
- .gitlab-ci.yml
|
||||
- Makefile
|
||||
|
||||
test:
|
||||
stage: test
|
||||
@ -29,8 +30,14 @@ test:
|
||||
changes:
|
||||
- keyringctl
|
||||
- libkeyringctl/*
|
||||
- test/*
|
||||
- tests/*
|
||||
- .gitlab-ci.yml
|
||||
- Makefile
|
||||
artifacts:
|
||||
when: always
|
||||
reports:
|
||||
junit: build/junit-report.xml
|
||||
cobertura: build/coverage.xml
|
||||
|
||||
build_install:
|
||||
stage: test
|
||||
|
7
Makefile
7
Makefile
@ -5,10 +5,10 @@ KEYRING_FILES=$(wildcard build/*.gpg) $(wildcard build/*-revoked) $(wildcard bui
|
||||
all: build
|
||||
|
||||
lint:
|
||||
black --check --diff keyringctl libkeyringctl
|
||||
black --check --diff keyringctl libkeyringctl tests
|
||||
isort --diff .
|
||||
flake8 keyringctl libkeyringctl
|
||||
mypy --install-types --non-interactive keyringctl libkeyringctl
|
||||
flake8 keyringctl libkeyringctl tests
|
||||
mypy --install-types --non-interactive keyringctl libkeyringctl tests
|
||||
|
||||
fmt:
|
||||
black .
|
||||
@ -17,6 +17,7 @@ fmt:
|
||||
test:
|
||||
coverage run
|
||||
coverage report
|
||||
coverage xml -o build/coverage.xml
|
||||
|
||||
build:
|
||||
./keyringctl -v build
|
||||
|
@ -27,7 +27,7 @@ show_missing = true
|
||||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
command_line = "-m pytest -vv tests/"
|
||||
command_line = "-m pytest --junit-xml=build/junit-report.xml -vv tests/"
|
||||
omit = ["tests/*", ".tox/*"]
|
||||
|
||||
[tool.isort]
|
||||
|
Loading…
Reference in New Issue
Block a user