aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci.sh')
-rwxr-xr-xscripts/ci.sh37
1 files changed, 0 insertions, 37 deletions
diff --git a/scripts/ci.sh b/scripts/ci.sh
deleted file mode 100755
index b6a1a74..0000000
--- a/scripts/ci.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-# A script to run a simplified version of the checks done by CI.
-#
-# Usage:
-# bash scripts/ci.sh
-#
-# Note: This script requires nightly Rust, rustfmt, clippy, and cargo-expand
-
-set -euo pipefail
-IFS=$'\n\t'
-
-# Decide Rust toolchain. Nightly is used by default.
-toolchain="+nightly"
-if [[ "${1:-}" == "+"* ]]; then
- toolchain="${1}"
- shift
-fi
-# Make sure toolchain is installed.
-cargo "${toolchain}" -V >/dev/null
-
-if [[ "${toolchain:-+nightly}" != "+nightly"* ]] || ! rustfmt -V &>/dev/null || ! cargo clippy -V &>/dev/null || ! cargo expand -V &>/dev/null; then
- echo "error: ci.sh requires nightly Rust, rustfmt, clippy, and cargo-expand"
- exit 1
-fi
-
-echo "Running 'cargo ${toolchain} fmt --all'"
-cargo "${toolchain}" fmt --all
-
-echo "Running 'cargo ${toolchain} clippy --all --all-targets'"
-cargo "${toolchain}" clippy --all --all-features --all-targets -Z unstable-options
-
-echo "Running 'cargo ${toolchain} test --all'"
-cargo "${toolchain}" test --all --all-features
-
-echo "Running 'cargo ${toolchain} doc --no-deps --all'"
-cargo "${toolchain}" doc --no-deps --all --all-features