| - find target/debug -type f -maxdepth 1 -delete |
| - rm -rf target/.rustc_info.json |
| - rm -rf target/debug/examples |
| - rm -rf target/debug/incremental |
| - rm -rf target/tests/target/debug/incremental |
| - rm -rf target/tests/target/debug/deps/{clap*, trybuild*} |
| - rm -rf target/debug/{deps,.fingerpint}/clap* |
| - find target/debug/deps -name "clap*" -exec rm -rf {} + |
| - ls -1 examples/ | sed -e 's/\.rs$//' | xargs -I "{{}}" find target/debug/deps -name "{{}}*" -exec rm -rf {} + |
| - ls -1 tests/ | sed -e 's/\.rs$//' | xargs -I "{{}}" find target/debug/deps -name "{{}}*" -exec rm -rf {} + |
| # Always build master & Enable building pull requests. |
| - rustup component add clippy |
| - rustup component add rustfmt |
| - echo "Checking codebase with Clippy release `cargo clippy --version`." |
| - cargo clippy --lib --features "yaml unstable" |
| - cargo clippy --tests --examples --features "yaml unstable" |
| - cargo install cargo-tarpaulin |
| - cargo tarpaulin --features "yaml unstable" --ciserver travis-ci --coveralls $TRAVIS_JOB_ID |
| - cargo test --no-default-features |
| - cargo test --features yaml unstable |