-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ci check script * Fix clippy lints in bin
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 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
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
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,27 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
MSRV="1.68.0" | ||
|
||
echo "fmt check" | ||
cargo fmt --all --check | ||
|
||
echo "clippy" | ||
cargo clippy -q --all-features --all-targets --workspace -- -D warnings | ||
|
||
echo "build docs" | ||
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo doc -q --no-deps --all-features --document-private-items | ||
|
||
echo "build tests" | ||
cargo test -q --no-run | ||
|
||
echo "running tests..." | ||
cargo test -q > /dev/null | ||
|
||
echo "build tests on msrv" | ||
RUSTUP_TOOLCHAIN="$MSRV" cargo test -q --no-run | ||
|
||
echo "running tests on msrv..." | ||
RUSTUP_TOOLCHAIN="$MSRV" cargo test -q > /dev/null | ||
|
||
echo ">>>>>> ALL OK <<<<<<<<" |