summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck13
1 files changed, 9 insertions, 4 deletions
diff --git a/check b/check
index 3151caa..2db4c0e 100755
--- a/check
+++ b/check
@@ -3,12 +3,17 @@
set -eu
verbose=false
+offline=
if [ "$#" -gt 0 ]; then
case "$1" in
verbose | -v | --verbose)
verbose=true
shift
;;
+ --offline)
+ offline=--offline
+ shift
+ ;;
esac
fi
@@ -22,10 +27,10 @@ if $verbose; then
hideok=
fi
-$hideok cargo check --all-targets
-cargo clippy -q
-$hideok cargo build --all-targets
-$hideok cargo test
+$hideok cargo check --all-targets $offline
+cargo clippy -q $offline
+$hideok cargo build --all-targets $offline
+$hideok cargo test $offline
$hideok cargo fmt -- --check
$hideok find . -type f -name '*.py' ! -name test.py -exec black --check '{}' +