From ff3bfd581b9a3390f465df7282c4c65918847ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 24 Mar 2023 17:35:26 +0100 Subject: [PATCH] Add tarpaulin make target --- .gitignore | 2 ++ Makefile | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 68b5b24..5556b27 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ target Cargo.lock +cobertura.xml +tarpaulin-report.html diff --git a/Makefile b/Makefile index 4291166..05ad258 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Copyright (C) Nitrokey GmbH # SPDX-License-Identifier: CC0-1.0 - +export RUST_LOG ?= info,cargo_tarpaulin=off .PHONY: check check: RUSTLFAGS='-Dwarnings' cargo check --all-features --all-targets @@ -16,5 +16,9 @@ lint: test: cargo test --all-features +.PHONY: tarpaulin +tarpaulin: + cargo tarpaulin --all-features -o Html -o Xml + .PHONY: ci ci: check lint test