]> git.lizzy.rs Git - rust.git/blob - ci/integration-tests.sh
build: re-enable stdsimd integration test
[rust.git] / ci / integration-tests.sh
1 #!/usr/bin/env bash
2 set -ex
3
4 if [[ -z "$INTEGRATION" ]]; then
5     exit 0
6 fi
7
8 CARGO_TARGET_DIR=$(pwd)/target/
9 export CARGO_TARGET_DIR
10
11 rm ~/.cargo/bin/cargo-clippy
12 cargo install --force --debug --path .
13
14 echo "Running integration test for crate ${INTEGRATION}"
15
16 git clone --depth=1 "https://github.com/${INTEGRATION}.git" checkout
17 cd checkout
18
19 # run clippy on a project, try to be verbose and trigger as many warnings
20 # as possible for greater coverage
21 # NOTE: we use `tee` to print any warnings and errors to stdout
22 #       to avoid build timeout in Travis
23 RUST_BACKTRACE=full \
24 cargo clippy \
25     --all-targets \
26     --all-features \
27     -- \
28     --cap-lints warn \
29     -W clippy::pedantic \
30     -W clippy::nursery \
31     2>&1 | tee clippy_output
32
33 cargo uninstall clippy
34
35 if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then
36     exit 1
37 fi