mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
24 lines
410 B
Bash
Executable file
24 lines
410 B
Bash
Executable file
cargo install --force
|
|
|
|
echo "Running integration test for crate ${INTEGRATION}"
|
|
|
|
git clone https://github.com/${INTEGRATION}.git
|
|
|
|
function check() {
|
|
cargo clippy --all &> clippy_output
|
|
cat clippy_output
|
|
! cat clippy_output | grep -q "internal error"
|
|
if [[ $? != 0 ]]; then
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
case ${INTEGRATION} in
|
|
rust-lang/cargo)
|
|
check
|
|
;;
|
|
*)
|
|
cd ${INTEGRATION}
|
|
check
|
|
;;
|
|
esac
|