]> git.lizzy.rs Git - rust.git/blob - ci/integration-tests.sh
Add integration tests
[rust.git] / ci / integration-tests.sh
1 cargo install --force
2
3 echo "Running integration test for crate ${INTEGRATION}"
4
5 git clone https://github.com/${INTEGRATION}.git
6
7 function check() {
8   cargo clippy --all &> clippy_output
9   cat clippy_output
10   ! cat clippy_output | grep -q "internal error"
11   if [[ $? != 0 ]]; then
12     return 1
13   fi
14 }
15
16 case ${INTEGRATION} in
17   rust-lang/cargo)
18     check
19     ;;
20   *)
21     cd ${INTEGRATION}
22     check
23     ;;
24 esac