diff options
author | Ryan Lopopolo <rjl@hyperbo.la> | 2019-09-15 18:36:00 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-09-17 09:35:52 +0900 |
commit | f377a637fb11d3aee2891e77c70c5796ea162956 (patch) | |
tree | 3910da1e6142f68488fbb14a80ecb3961ccf8bf6 | |
parent | 7ed4df1ff77f3a57bf790f53401e74def4573f79 (diff) |
lint ci/script.sh
-rwxr-xr-x | ci/script.sh | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ci/script.sh b/ci/script.sh index eeed674f..6bf65960 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -14,19 +14,25 @@ case "$BINDGEN_JOB" in # Need rustfmt to compare the test expectations. rustup update nightly rustup component add rustfmt - export RUSTFMT="$(rustup which rustfmt)" - cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" + RUSTFMT="$(rustup which rustfmt)" + export RUSTFMT + cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES" ./ci/assert-no-diff.sh ;; "integration") cd ./bindgen-integration - cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" + cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES" + ;; + + "nofeatures") + cargo test "$BINDGEN_PROFILE" --no-default-features + ./ci/assert-no-diff.sh ;; "expectations") cd ./tests/expectations - cargo test $BINDGEN_PROFILE + cargo test "$BINDGEN_PROFILE" ;; "misc") @@ -43,10 +49,7 @@ case "$BINDGEN_JOB" in # TODO: Actually run quickchecks once `bindgen` is reliable enough. cargo test ;; - "nofeatures") - cargo test $BINDGEN_PROFILE --no-default-features - ./ci/assert-no-diff.sh - ;; + *) echo "Error! Unknown \$BINDGEN_JOB: '$BINDGEN_JOB'" exit 1 |