summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/ci/build_and_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/ci/build_and_test.sh')
-rwxr-xr-xsrc/tools/rustfmt/ci/build_and_test.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/rustfmt/ci/build_and_test.sh b/src/tools/rustfmt/ci/build_and_test.sh
new file mode 100755
index 000000000..8fa0f67b0
--- /dev/null
+++ b/src/tools/rustfmt/ci/build_and_test.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set -euo pipefail
+
+export RUSTFLAGS="-D warnings"
+
+# Print version information
+rustc -Vv
+cargo -V
+
+# Build and test main crate
+cargo build --locked
+cargo test
+
+# Build and test other crates
+cd config_proc_macro
+cargo build --locked
+cargo test