-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
12aeab7
commit 88db798
Showing
4 changed files
with
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
if ! cargo fmt -- --check | ||
then | ||
echo "There are some code style issues." | ||
echo "Run cargo fmt first." | ||
exit 1 | ||
fi | ||
|
||
if ! cargo clippy --all-targets -- -D warnings | ||
then | ||
echo "There are some clippy issues." | ||
exit 1 | ||
fi | ||
|
||
if ! cargo test | ||
then | ||
echo "There are some test issues." | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
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 @@ | ||
fmt: | ||
@cargo fmt | ||
|
||
build: | ||
@cargo build | ||
|
||
clean: | ||
@cargo clean | ||
|
||
test: | ||
@cargo test | ||
|
||
lint: fmt | ||
@cargo clippy --all-targets -- -D warnings | ||
|
||
git-hooks: | ||
@echo "Installing git hooks..." | ||
@cp -r .hooks/* .git/hooks/ | ||
@chmod +x .git/hooks/* | ||
@echo "Done." |
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