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