aboutsummaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/build.sh17
-rwxr-xr-x.ci/test.sh17
2 files changed, 34 insertions, 0 deletions
diff --git a/.ci/build.sh b/.ci/build.sh
new file mode 100755
index 0000000..610f33d
--- /dev/null
+++ b/.ci/build.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 build --verbose --release "${CARGO_ARGS[@]}"
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[@]}"