X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=appveyor.yml;h=58693cb5cc344eb1ff1c9d31f28fe9804a579f20;hb=553db874d7183d33040807142b1f4f79441c1d4c;hp=18f25e916f3f106b88831bccaac19c024fcc7ad6;hpb=14d2700b6f1fa838884d32c9e40c3da32bf9a1b1;p=rust.git diff --git a/appveyor.yml b/appveyor.yml index 18f25e916f3..58693cb5cc3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,41 +1,47 @@ environment: - global: - PROJECT_NAME: rust-clippy - matrix: - #- TARGET: i686-pc-windows-gnu - #- TARGET: i686-pc-windows-msvc - #- TARGET: x86_64-pc-windows-gnu - - TARGET: x86_64-pc-windows-msvc + global: + PROJECT_NAME: rust-clippy + RUST_BACKTRACE: 1 + matrix: + #- TARGET: i686-pc-windows-gnu + #- TARGET: i686-pc-windows-msvc + #- TARGET: x86_64-pc-windows-gnu + - TARGET: x86_64-pc-windows-msvc branches: - # Don't build these branches - except: - # Used by bors - - trying.tmp - - staging.tmp + # Only build AppVeyor on r+ and try branch + only: + - auto + - try + +cache: + - '%USERPROFILE%\.cargo' +# before cache +after_test: + - cargo install -Z install-upgrade cargo-cache --debug + - cargo cache --autoclean install: - - curl -sSf -o rustup-init.exe https://win.rustup.rs/ - - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly - - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - - git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt - - set /p RUSTC_HASH=