]> git.lizzy.rs Git - rust.git/blob - ci/base-tests.sh
Merge pull request #3081 from mikerite/fix-3078
[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 cd clippy_lints && cargo test && cd ..
11 mkdir -p ~/rust/cargo/bin
12 cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
13 cp target/debug/clippy-driver ~/rust/cargo/bin/clippy-driver
14 rm ~/.cargo/bin/cargo-clippy
15 # run clippy on its own codebase...
16 PATH=$PATH:~/rust/cargo/bin cargo clippy --all-targets --all-features -- -D clippy
17 # ... and some test directories
18 cd clippy_workspace_tests && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
19 cd clippy_workspace_tests/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../..
20 cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../..
21 cd clippy_workspace_tests/subcrate/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ../../..
22 # test --manifest-path
23 PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=clippy_workspace_tests/Cargo.toml -- -D clippy
24 cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=../Cargo.toml -- -D clippy && cd ../..
25 set +x