rust/appveyor.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2017-01-05 12:26:00 -06:00
environment:
2019-10-24 12:49:09 -05: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
branches:
2019-10-24 12:49:09 -05:00
# Only build AppVeyor on r+ and try branch
only:
- auto
- try
cache:
2019-10-24 12:49:09 -05:00
- '%USERPROFILE%\.cargo'
2019-10-24 12:47:20 -05:00
# before cache
after_test:
2019-11-27 03:32:51 -06:00
- cargo install cargo-cache --debug
2019-10-24 12:49:09 -05:00
- cargo cache --autoclean
2017-01-05 12:26:00 -06:00
install:
2019-10-24 12:49:09 -05: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 03:32:51 -06:00
- cargo install rustup-toolchain-install-master
2019-10-24 12:49:09 -05:00
- rustup-toolchain-install-master -f -n master -c rustc-dev
- rustup override set master
- rustc -V
- cargo -V
2017-01-05 12:26:00 -06:00
2019-10-24 12:47:20 -05:00
# Build settings, not to be confused with "before_build" and "after_build".
2017-01-05 12:26:00 -06:00
build: false
2019-10-24 12:47:20 -05:00
build_script:
2019-11-25 10:23:07 -06:00
- cargo build --features deny-warnings
2019-10-24 12:47:20 -05:00
test_script:
2019-11-25 10:23:07 -06:00
- cargo test --features deny-warnings
2017-01-05 12:26:00 -06:00
notifications:
2019-10-24 12:49:09 -05:00
- provider: Email
on_build_success: false