diff options
author | Haibo Huang <hhb@google.com> | 2021-01-06 22:05:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-01-06 22:05:33 +0000 |
commit | edabc1003f5edda8ceb99e8e5a588da2a484b187 (patch) | |
tree | b4a59a0bf295d7cc3837dd372b5068cb95023fc6 /scripts/ci.sh | |
parent | dbbdfe90ffadbab9bd0cac9fb0066f527c2c7255 (diff) | |
parent | 803535edf46cf1e4d0b092b6b2e52ae776b41711 (diff) | |
download | pin-project-edabc1003f5edda8ceb99e8e5a588da2a484b187.tar.gz |
Upgrade rust/crates/pin-project to 1.0.3 am: 803535edf4
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1541052
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie8d6095b157cc4e978815ebf56f0511793973753
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 |