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