rust/appveyor.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2017-01-05 19:26:00 +01:00
environment:
2019-10-24 19:49:09 +02: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 19:49:09 +02:00
# Only build AppVeyor on r+ and try branch
only:
- auto
- try
cache:
2019-10-24 19:49:09 +02:00
- '%USERPROFILE%\.cargo'
2019-10-24 19:47:20 +02:00
# before cache
after_test:
2019-10-24 19:49:09 +02:00
- cargo install -Z install-upgrade cargo-cache --debug
- cargo cache --autoclean
2017-01-05 19:26:00 +01:00
install:
2019-10-24 19:49:09 +02: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
- cargo install -Z install-upgrade rustup-toolchain-install-master
- rustup-toolchain-install-master -f -n master -c rustc-dev
- rustup override set master
- rustc -V
- cargo -V
2017-01-05 19:26:00 +01:00
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:
2019-10-24 19:49:09 +02:00
- cargo build --features debugging
2019-10-24 19:47:20 +02:00
test_script:
2019-10-24 19:49:09 +02:00
- cargo test --features debugging
2017-01-05 19:26:00 +01:00
notifications:
2019-10-24 19:49:09 +02:00
- provider: Email
on_build_success: false