aboutsummaryrefslogtreecommitdiff
path: root/.ci/test.sh
diff options
context:
space:
mode:
Diffstat (limited to '.ci/test.sh')
-rwxr-xr-x.ci/test.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/.ci/test.sh b/.ci/test.sh
new file mode 100755
index 0000000..6840023
--- /dev/null
+++ b/.ci/test.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+: "${FEATURE_BUILD:=default}"
+
+CARGO_ARGS=()
+
+function set_cargo_args() {
+ if [ "$FEATURE_BUILD" != "default" ]; then
+ CARGO_ARGS+=(--no-default-features)
+ fi
+}
+
+set_cargo_args
+
+set -x
+
+cargo test --verbose "${CARGO_ARGS[@]}"