Merge pull request #3486 from phansch/make_windows_travis_run_more_stuff

Travis: Add rustc sysroot bin to PATH for windows build
This commit is contained in:
Philipp Hansch 2018-12-02 16:29:38 +01:00 committed by GitHub
commit fd54f448bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -52,7 +52,7 @@ matrix:
- os: linux
env: BASE_TESTS=true
- os: windows
env: BASE_TESTS=true
env: CARGO_INCREMENTAL=0 BASE_TESTS=true
- env: INTEGRATION=rust-lang/cargo
if: repo =~ /^rust-lang\/rust-clippy$/
- env: INTEGRATION=rust-random/rand
@ -81,7 +81,7 @@ matrix:
if: repo =~ /^rust-lang\/rust-clippy$/
allow_failures:
- os: windows
env: BASE_TESTS=true
env: CARGO_INCREMENTAL=0 BASE_TESTS=true
# prevent these jobs with default env vars
exclude:
- os: linux

View file

@ -28,6 +28,9 @@ cd clippy_dev && cargo test && cd ..
./util/dev update_lints --check
cargo +nightly fmt --all -- --check
# Add bin to PATH for windows
PATH=$PATH:$(rustc --print sysroot)/bin
CLIPPY="`pwd`/target/debug/cargo-clippy clippy"
# run clippy on its own codebase...
${CLIPPY} --all-targets --all-features -- -D clippy::all -D clippy::internal -Dclippy::pedantic