Skip to content
Snippets Groups Projects
Commit 3a3d3c8e authored by Andreas Ziegler's avatar Andreas Ziegler
Browse files

gitlab-ci.yml: add coverage feature

parent 8ff63e3f
No related branches found
No related tags found
No related merge requests found
Pipeline #86544 passed
...@@ -34,9 +34,15 @@ test: ...@@ -34,9 +34,15 @@ test:
- PYVER=$(python --version 2>&1 | sed -e 's/\ //g' -e 's/P/p/g' | cut -c1-9); WRONGFILE="./venv/lib/$PYVER/site-packages/$PWD/venv/lib/$PYVER/site-packages/capstone/libcapstone.so"; TARGET="./venv/lib/$PYVER/site-packages/capstone"; if [ -f "$WRONGFILE" ]; then cp "$WRONGFILE" "$TARGET"; fi - PYVER=$(python --version 2>&1 | sed -e 's/\ //g' -e 's/P/p/g' | cut -c1-9); WRONGFILE="./venv/lib/$PYVER/site-packages/$PWD/venv/lib/$PYVER/site-packages/capstone/libcapstone.so"; TARGET="./venv/lib/$PYVER/site-packages/capstone"; if [ -f "$WRONGFILE" ]; then cp "$WRONGFILE" "$TARGET"; fi
- coverage run --concurrency=multiprocessing test/run_tests.py - coverage run --concurrency=multiprocessing test/run_tests.py
- coverage combine - coverage combine
- coverage report
- coverage html - coverage html
- coverage xml
- coverage-badge -o htmlcov/coverage.svg - coverage-badge -o htmlcov/coverage.svg
- coverage report coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts: artifacts:
paths: paths:
- htmlcov - htmlcov
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment