Skip to content
Snippets Groups Projects
Unverified Commit c2df9614 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

move combine back to post-build

The paths are even weirder inside the build environment.
parent 4425efa0
No related branches found
No related tags found
1 merge request!147Try to fix coverage collection from nix
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p "python.withPackages (ps: [ ps.codecov ])"
set -x
find ./result-doc/share/doc
cp ./result-doc/share/doc/*/.coverage ./
cp ./result-doc/share/doc/*/.coverage.* ./
python -m coverage combine
python -m coverage report
python -m coverage xml
codecov --file coverage.xml
......@@ -58,10 +58,8 @@ buildPythonPackage rec {
postCheck = if collectCoverage
then ''
python -m coverage combine
python -m coverage html
mkdir -p "$doc/share/doc/${name}"
cp -vr .coverage htmlcov "$doc/share/doc/${name}"
cp -v .coverage.* "$doc/share/doc/${name}"
''
else "";
}
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