Always show coverage reports

This commit is contained in:
Alexander Bantyev 2020-05-26 20:29:11 +03:00
parent 8041ce5ddb
commit 1fe9b29732
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 2 additions and 4 deletions

View File

@ -63,6 +63,7 @@ test:
- /^.*-run-dev$/ - /^.*-run-dev$/
script: script:
- nix-build nix -A ligo-coverage - nix-build nix -A ligo-coverage
- cat result/share/coverage-all
- cp -Lr --no-preserve=mode,ownership,timestamps result/share/coverage . - cp -Lr --no-preserve=mode,ownership,timestamps result/share/coverage .
artifacts: artifacts:
paths: paths:

View File

@ -133,19 +133,16 @@ in {
echo "Coverage:" echo "Coverage:"
BISECT_ENABLE=yes dune runtest --force BISECT_ENABLE=yes dune runtest --force
bisect-ppx-report html -o $out/share/coverage/all --title="LIGO overall test coverage" bisect-ppx-report html -o $out/share/coverage/all --title="LIGO overall test coverage"
bisect-ppx-report summary --per-file bisect-ppx-report summary --per-file > $out/share/coverage-all
echo "Test coverage:" echo "Test coverage:"
BISECT_ENABLE=yes dune runtest src/test --force BISECT_ENABLE=yes dune runtest src/test --force
bisect-ppx-report html -o $out/share/coverage/ligo --title="LIGO test coverage" bisect-ppx-report html -o $out/share/coverage/ligo --title="LIGO test coverage"
bisect-ppx-report summary --per-file
echo "Doc coverage:" echo "Doc coverage:"
BISECT_ENABLE=yes dune build @doc-test --force BISECT_ENABLE=yes dune build @doc-test --force
bisect-ppx-report html -o $out/share/coverage/docs --title="LIGO doc coverage" bisect-ppx-report html -o $out/share/coverage/docs --title="LIGO doc coverage"
bisect-ppx-report summary --per-file
echo "CLI test coverage:" echo "CLI test coverage:"
BISECT_ENABLE=yes dune runtest src/bin/expect_tests BISECT_ENABLE=yes dune runtest src/bin/expect_tests
bisect-ppx-report html -o $out/share/coverage/cli --title="CLI test coverage" bisect-ppx-report html -o $out/share/coverage/cli --title="CLI test coverage"
bisect-ppx-report summary --per-file
''; '';
installPhase = "true"; installPhase = "true";
}); });