travis: run tests of external projects with --all-targets --all-features -- --cap-lints warn
This commit is contained in:
parent
4010788b3a
commit
e0214397bd
@ -7,7 +7,7 @@ mkdir -p ~/rust/cargo/bin
|
||||
cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
|
||||
cp target/debug/clippy-driver ~/rust/cargo/bin/clippy-driver
|
||||
rm ~/.cargo/bin/cargo-clippy
|
||||
PATH=$PATH:~/rust/cargo/bin cargo clippy --all -- -D clippy
|
||||
PATH=$PATH:~/rust/cargo/bin cargo clippy --all-targets --all-features -- --cap-lints warn -D clippy
|
||||
cd clippy_workspace_tests && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
|
||||
cd clippy_workspace_tests/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../..
|
||||
cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../..
|
||||
|
@ -8,9 +8,9 @@ git clone --depth=1 https://github.com/${INTEGRATION}.git checkout
|
||||
cd checkout
|
||||
|
||||
function check() {
|
||||
RUST_BACKTRACE=full cargo clippy --all &> clippy_output
|
||||
RUST_BACKTRACE=full cargo clippy --all-targets --all-features -- --cap-lints warn &> clippy_output
|
||||
cat clippy_output
|
||||
! cat clippy_output | grep -q "internal compiler error"
|
||||
! cat clippy_output | grep -q "internal compiler error\|query stack during panic"
|
||||
if [[ $? != 0 ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user