summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 15:40:59 +0000
committerLars Wirzenius <liw@liw.fi>2024-01-13 15:40:59 +0000
commita5756adf589c8c33f83df5804d7e5633ce82627a (patch)
tree692cefb2f68dba1903f6be06c2a650733d1c826f /check
parente4f622252fdf43315e087b968e0db7cc1d051977 (diff)
parent1a6d669a9ade98ccd21c0896b3fb0b122473ab73 (diff)
downloadewww-main.tar.gz
Merge branch 'subplot-fixes' into 'main'HEADmain
fixes and prep for Ambient See merge request larswirzenius/ewww!35
Diffstat (limited to 'check')
-rwxr-xr-xcheck11
1 files changed, 8 insertions, 3 deletions
diff --git a/check b/check
index c143a4a..5dfe653 100755
--- a/check
+++ b/check
@@ -3,6 +3,7 @@
set -eu
verbose=false
+offline=
moar=true
while [ "$#" -gt 0 ] && $moar; do
case "$1" in
@@ -10,6 +11,10 @@ while [ "$#" -gt 0 ] && $moar; do
verbose=true
shift 1
;;
+ --offline)
+ offline=--offline
+ shift 1
+ ;;
esac
done
@@ -35,14 +40,14 @@ docgen() {
subplot docgen "$1" --output "$2"
}
-$hideok cargo build --all-targets
+$hideok cargo build --all-targets $offline
if cargo --list | awk '{ print $1 }' | grep 'clippy$' >/dev/null; then
# shellcheck disable=SC2086
- cargo clippy $quiet
+ cargo clippy $quiet $offline
fi
# shellcheck disable=SC2086
-$hideok cargo test $quiet
+$hideok cargo test $quiet $offline
if cargo fmt --help >/dev/null 2>/dev/null; then
$hideok cargo fmt -- --check