-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
devworlds
committed
Jan 6, 2025
1 parent
9f9f881
commit e62691c
Showing
3 changed files
with
37 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
WORKSPACES="benches common protocols roles utils" | ||
|
||
for workspace in $WORKSPACES; do | ||
echo "Executing clippy on: $workspace" | ||
cargo +1.75.0 clippy --manifest-path="$workspace/Cargo.toml" -- -D warnings -A dead-code | ||
if [ $? -ne 0 ]; then | ||
echo "Clippy found some errors in: $workspace" | ||
exit 1 | ||
fi | ||
|
||
echo "Running tests on: $workspace" | ||
cargo +1.75 test --manifest-path="$workspace/Cargo.toml" | ||
if [ $? -ne 0 ]; then | ||
echo "Tests failed in: $workspace" | ||
exit 1 | ||
fi | ||
|
||
echo "Running fmt on: $workspace" | ||
(cd $workspace && cargo +nightly fmt) | ||
if [ $? -ne 0 ]; then | ||
echo "Fmt failed in: $workspace" | ||
exit 1 | ||
fi | ||
done | ||
|
||
echo "Clippy success, all tests passed!" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,10 @@ | ||
#!/bin/sh | ||
|
||
WORKSPACES="benches common protocols roles utils" | ||
|
||
for workspace in $WORKSPACES; do | ||
echo "Executing clippy on: $workspace" | ||
cargo +1.75.0 clippy --manifest-path="$workspace/Cargo.toml" -- -D warnings -A dead-code | ||
if [ $? -ne 0 ]; then | ||
echo "Clippy found some errors in: $workspace" | ||
exit 1 | ||
fi | ||
|
||
echo "Running tests on: $workspace" | ||
cargo +1.75 test --manifest-path="$workspace/Cargo.toml" | ||
if [ $? -ne 0 ]; then | ||
echo "Tests failed in: $workspace" | ||
exit 1 | ||
fi | ||
|
||
echo "Running fmt on: $workspace" | ||
(cd $workspace && cargo +nightly fmt) | ||
if [ $? -ne 0 ]; then | ||
echo "Fmt failed in: $workspace" | ||
exit 1 | ||
fi | ||
#!/bin/bash | ||
for manifest in \ | ||
benches/Cargo.toml \ | ||
common/Cargo.toml \ | ||
protocols/Cargo.toml \ | ||
roles/Cargo.toml \ | ||
utils/Cargo.toml \ | ||
utils/message-generator/Cargo.toml; do | ||
cargo clippy --manifest-path=$manifest -- -D warnings -A dead-code | ||
done | ||
|
||
echo "Clippy success, all tests passed!" |