]> git.lizzy.rs Git - rust.git/blob - ci/integration-tests.sh
Add setup-toolchain.sh script to configure the master version of rustc,
[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 # run clippy on a project, try to be verbose and trigger as many warnings as possible for greater coverage
12   RUST_BACKTRACE=full cargo clippy --all-targets --all-features -- --cap-lints warn -W clippy::pedantic -W clippy::nursery  &> clippy_output
13   cat clippy_output
14   ! cat clippy_output | grep -q "internal compiler error\|query stack during panic\|E0463"
15   if [[ $? != 0 ]]; then
16     return 1
17   fi
18 }
19
20 case ${INTEGRATION} in
21   *)
22     check
23     ;;
24 esac