rust/appveyor.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2017-01-05 19:26:00 +01:00
environment:
global:
PROJECT_NAME: rust-clippy
2019-10-24 19:47:20 +02:00
RUST_BACKTRACE: 1
2017-01-05 19:26:00 +01:00
matrix:
#- TARGET: i686-pc-windows-gnu
2018-01-17 08:53:13 +01:00
#- TARGET: i686-pc-windows-msvc
#- TARGET: x86_64-pc-windows-gnu
2017-01-05 19:26:00 +01:00
- TARGET: x86_64-pc-windows-msvc
branches:
# Only build AppVeyor on r+ and try branch
only:
- auto
- try
cache:
- '%USERPROFILE%\.cargo'
2019-10-24 19:47:20 +02:00
# before cache
after_test:
- cargo install -Z install-upgrade cargo-cache --debug
- cargo cache --autoclean
2017-01-05 19:26:00 +01:00
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
2019-10-24 19:47:20 +02:00
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
- del rust-toolchain
- cargo install -Z install-upgrade rustup-toolchain-install-master
- rustup-toolchain-install-master -f -n master -c rustc-dev
2019-10-24 19:47:20 +02:00
- rustup override set master
2017-01-05 19:26:00 +01:00
- rustc -V
- cargo -V
2019-10-24 19:47:20 +02:00
# Build settings, not to be confused with "before_build" and "after_build".
2017-01-05 19:26:00 +01:00
build: false
2019-10-24 19:47:20 +02:00
build_script:
2017-01-05 19:26:00 +01:00
- cargo build --features debugging
2019-10-24 19:47:20 +02:00
test_script:
2017-01-05 19:26:00 +01:00
- cargo test --features debugging
notifications:
- provider: Email
on_build_success: false