summaryrefslogtreecommitdiffhomepage
path: root/ci
diff options
context:
space:
mode:
authorJonathan <jonathan@mullvad.net>2022-06-21 15:52:52 +0200
committerJonathan <jonathan@mullvad.net>2022-06-30 15:05:07 +0200
commit3bf745cb30c9916eacde2b65449054f6007d48a4 (patch)
tree94e3c6f1471a63b8945c5d8b08a50bdd2a120369 /ci
parent9d1fae38f7733627fa30f8446fd508507562ba04 (diff)
downloadmullvadvpn-3bf745cb30c9916eacde2b65449054f6007d48a4.tar.xz
mullvadvpn-3bf745cb30c9916eacde2b65449054f6007d48a4.zip
Add CI script for running Clippy
CI script will run clippy with `RUSTFLAGS="--deny warnings"` because this is how we do it in the other build CI scripts. However this might clash with configs that are done in the `.cargo/config` file. I expect this will not be a significant problem however and the CI script is not a critical resource and as such it seems like a waste to bikeshed this.
Diffstat (limited to 'ci')
-rwxr-xr-xci/check-clippy.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/check-clippy.sh b/ci/check-clippy.sh
new file mode 100755
index 0000000000..e48adfc6b6
--- /dev/null
+++ b/ci/check-clippy.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+set -eux
+
+export RUSTFLAGS="--deny warnings"
+
+# Check rust crates with clippy
+source env.sh
+time cargo clippy --locked --verbose