2017-01-05 18:26:00 +00:00
|
|
|
environment:
|
2019-10-24 17:49:09 +00:00
|
|
|
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
|
2018-10-25 18:14:39 +00:00
|
|
|
|
2018-10-22 15:30:01 +00:00
|
|
|
branches:
|
2019-10-24 17:49:09 +00:00
|
|
|
# Only build AppVeyor on r+ and try branch
|
|
|
|
only:
|
|
|
|
- auto
|
|
|
|
- try
|
2018-10-25 18:14:39 +00:00
|
|
|
|
2019-10-16 06:14:24 +00:00
|
|
|
cache:
|
2019-10-24 17:49:09 +00:00
|
|
|
- '%USERPROFILE%\.cargo'
|
2019-10-24 17:47:20 +00:00
|
|
|
# before cache
|
2019-10-17 17:44:13 +00:00
|
|
|
after_test:
|
2019-11-27 09:32:51 +00:00
|
|
|
- cargo install cargo-cache --debug
|
2019-10-24 17:49:09 +00:00
|
|
|
- cargo cache --autoclean
|
2019-10-16 06:14:24 +00:00
|
|
|
|
2017-01-05 18:26:00 +00:00
|
|
|
install:
|
2019-10-24 17:49:09 +00:00
|
|
|
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
|
|
|
|
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
|
|
|
|
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
|
|
|
|
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
|
|
|
|
- del rust-toolchain
|
2019-11-27 09:32:51 +00:00
|
|
|
- cargo install rustup-toolchain-install-master
|
2019-10-24 17:49:09 +00:00
|
|
|
- rustup-toolchain-install-master -f -n master -c rustc-dev
|
|
|
|
- rustup override set master
|
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
2017-01-05 18:26:00 +00:00
|
|
|
|
2019-10-24 17:47:20 +00:00
|
|
|
# Build settings, not to be confused with "before_build" and "after_build".
|
2017-01-05 18:26:00 +00:00
|
|
|
build: false
|
|
|
|
|
2019-10-24 17:47:20 +00:00
|
|
|
build_script:
|
2019-11-25 16:23:07 +00:00
|
|
|
- cargo build --features deny-warnings
|
2019-10-24 17:47:20 +00:00
|
|
|
|
|
|
|
test_script:
|
2019-11-25 16:23:07 +00:00
|
|
|
- cargo test --features deny-warnings
|
2017-01-05 18:26:00 +00:00
|
|
|
|
|
|
|
notifications:
|
2019-10-24 17:49:09 +00:00
|
|
|
- provider: Email
|
|
|
|
on_build_success: false
|