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