diff options
author | Haibo Huang <hhb@google.com> | 2021-01-06 23:00:22 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-01-06 23:00:22 +0000 |
commit | f14d6a686a8e9eb9359369569e06983a10e5d694 (patch) | |
tree | b4a59a0bf295d7cc3837dd372b5068cb95023fc6 /scripts/ci.sh | |
parent | 932883e65ccd882ab2f97188ef66a0aa7cf339a7 (diff) | |
parent | 1f8d1834e3d402e53170cd757f0554d2984688ab (diff) | |
download | pin-project-f14d6a686a8e9eb9359369569e06983a10e5d694.tar.gz |
Upgrade rust/crates/pin-project to 1.0.3 am: 803535edf4 am: edabc1003f am: 1f8d1834e3
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1541052
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib29efe0f160a29b3b80e05e765a40ad617cb9208
Diffstat (limited to 'scripts/ci.sh')
-rwxr-xr-x | scripts/ci.sh | 37 |
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 |