From eb769493e78702aaf5d3b6a1210fde447440525e Mon Sep 17 00:00:00 2001 From: Luis Moreno Date: Tue, 5 Jan 2021 16:13:39 -0400 Subject: [PATCH] Add coverage check (#57) * Add coverage check --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 17da167..a931ff5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,8 @@ workflows: jobs: - build - clippy + - coverage + jobs: build: docker: @@ -41,3 +43,17 @@ jobs: - run: name: Run cargo clippy command: cargo clippy --all-features -- -Drust-2018-idioms -Dwarnings + + coverage: + machine: true + steps: + - checkout + - run: + name: Generate report + command: > + docker run --security-opt seccomp=unconfined -v $PWD:/volume + xd009642/tarpaulin:latest-nightly cargo tarpaulin -v --ciserver circle-ci + --out Lcov --all-features -- --test-threads 1 + - run: + name: Upload + command: bash <(curl -s https://codecov.io/bash) -Z -f