Skip to content

Commit

Permalink
lint ci/script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo authored and emilio committed Sep 17, 2019
1 parent 7ed4df1 commit f377a63
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions ci/script.sh
Expand Up @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit f377a63

Please sign in to comment.