From 1fe9b29732d4cf0f545f735c737d09dac50b1741 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 26 May 2020 20:29:11 +0300 Subject: [PATCH] Always show coverage reports --- .gitlab-ci.yml | 1 + nix/ocaml-overlay.nix | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8681301a7..6ff438506 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,6 +63,7 @@ test: - /^.*-run-dev$/ script: - nix-build nix -A ligo-coverage + - cat result/share/coverage-all - cp -Lr --no-preserve=mode,ownership,timestamps result/share/coverage . artifacts: paths: diff --git a/nix/ocaml-overlay.nix b/nix/ocaml-overlay.nix index b44cfdcef..8dd971e79 100644 --- a/nix/ocaml-overlay.nix +++ b/nix/ocaml-overlay.nix @@ -133,19 +133,16 @@ in { echo "Coverage:" BISECT_ENABLE=yes dune runtest --force 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:" BISECT_ENABLE=yes dune runtest src/test --force bisect-ppx-report html -o $out/share/coverage/ligo --title="LIGO test coverage" - bisect-ppx-report summary --per-file echo "Doc coverage:" BISECT_ENABLE=yes dune build @doc-test --force bisect-ppx-report html -o $out/share/coverage/docs --title="LIGO doc coverage" - bisect-ppx-report summary --per-file echo "CLI test coverage:" 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 summary --per-file ''; installPhase = "true"; });