rust/ci/integration-tests.sh

26 lines
418 B
Bash
Raw Normal View History

set -ex
2018-05-16 07:10:35 +00:00
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