]> git.lizzy.rs Git - rust.git/blob - ci/base-tests.sh
Merge pull request #2966 from matthiaskrgr/moar_dogfood
[rust.git] / ci / base-tests.sh
1 set -ex
2
3 echo "Running clippy base tests"
4
5 PATH=$PATH:./node_modules/.bin
6 remark -f *.md > /dev/null
7 # build clippy in debug mode and run tests
8 cargo build --features debugging
9 cargo test --features debugging
10 mkdir -p ~/rust/cargo/bin
11 cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
12 cp target/debug/clippy-driver ~/rust/cargo/bin/clippy-driver
13 rm ~/.cargo/bin/cargo-clippy
14 # run clippy on its own codebase...
15 PATH=$PATH:~/rust/cargo/bin cargo clippy --all-targets --all-features -- -D clippy
16 # ... and some test directories
17 cd clippy_workspace_tests && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
18 cd clippy_workspace_tests/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../..
19 cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../..
20 cd clippy_workspace_tests/subcrate/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../../..
21 # test --manifest-path
22 PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=clippy_workspace_tests/Cargo.toml -- -D clippy
23 cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=../Cargo.toml -- -D clippy && cd ../..
24 set +x