Skip to content

Commit

Permalink
ci: making codecov informational
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasauler committed Jul 7, 2024
1 parent 2423ddf commit 74af0c3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ jobs:
- run:
name: Install codecov tool
command: cargo install cargo-llvm-cov
- run:
name: Install nextest
command: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
- run:
name: Running code coverage
command: rustup run nightly cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
command: rustup run nightly cargo llvm-cov nextest --locked --all-features --lcov --output-path lcov.info
- codecov/upload:
file: "./lcov.info"
#token: $CODECOV_TOKEN already default
Expand Down
13 changes: 13 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ref: https://docs.codecov.com/docs/codecovyml-reference
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true

# Test files aren't important for coverage
ignore:
- "tests"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: rust-clippy
name: Rust clippy
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
entry: cargo clippy --all -- -D warnings
entry: cargo clippy --all -- -D warnings -D dead-code
pass_filenames: false
types: [file, rust]
language: system

0 comments on commit 74af0c3

Please sign in to comment.