Skip to content

Commit

Permalink
chore: modified build.sh (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk authored Aug 12, 2024
1 parent d234441 commit 9fe25aa
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ compile() {
}

test() {
cargo test
cargo test -- --show-output
errcheck $?
}

unit() {
cargo test -- $1
cargo test -- --show-output $1
errcheck $?
}

Expand All @@ -46,11 +46,17 @@ bench() {
errcheck $?
}

doc() {
cargo doc
errcheck $?
}

if [[ "$#" == "0" ]]; then
clean
#clean
format
compile
test
doc
cover

elif [[ "$1" == "unit" ]]; then
Expand All @@ -71,6 +77,9 @@ else
test)
test
;;
doc)
doc
;;
cover)
cover
;;
Expand Down

0 comments on commit 9fe25aa

Please sign in to comment.