summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck10
1 files changed, 4 insertions, 6 deletions
diff --git a/check b/check
index 27bef0d..79b73ee 100755
--- a/check
+++ b/check
@@ -4,13 +4,11 @@
set -eu
-quiet=-q
hideok=chronic
if [ "$#" -gt 0 ]
then
case "$1" in
verbose | -v | --verbose)
- quiet=
hideok=
shift
;;
@@ -22,10 +20,10 @@ got_cargo_cmd()
cargo --list | grep " $1 " > /dev/null
}
-cargo build --all-targets $quiet
-got_cargo_cmd clippy && cargo clippy $quiet
-got_cargo_cmd fmt && cargo fmt -- --check
-$hideok cargo test $quiet
+$hideok cargo build --all-targets
+got_cargo_cmd clippy && $hideok cargo clippy
+got_cargo_cmd fmt && $hideok cargo fmt -- --check
+$hideok cargo test
sp-docgen obnam.md -o obnam.html
sp-docgen obnam.md -o obnam.pdf