This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some commands to run Coverage and Checks locally (#530)
Add some commands to run Coverage and Checks locally And add more tests to cache.
- Loading branch information
Showing
4 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ README.md | |
target | ||
|
||
smoke-tests/ | ||
|
||
*.profraw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ venv | |
__pycache__/ | ||
*.py[cod] | ||
.python-version | ||
|
||
*.profraw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
build: | ||
cargo build | ||
|
||
setup-all: build setup-coverage-tools setup-rust-checks | ||
|
||
setup-coverage-tools: | ||
cargo +stable install cargo-llvm-cov --locked | ||
|
||
coverage: setup-coverage-tools | ||
cargo llvm-cov --open | ||
|
||
setup-rust-checks: | ||
rustup component add rustfmt | ||
cargo install cargo-audit | ||
rustup component add clippy | ||
|
||
checks: setup-rust-checks | ||
cargo fmt -- --check | ||
cargo audit | ||
cargo clippy --all --all-targets --all-features -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters