forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
47 lines (40 loc) · 1.17 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
environment:
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:
# Only build AppVeyor on r+ and try branch
only:
- auto
- try
cache:
- '%USERPROFILE%\.cargo'
# before cache
after_test:
- cargo install 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 --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 rustup-toolchain-install-master
- rustup-toolchain-install-master -f -n master -c rustc-dev
- rustup override set master
- rustc -V
- cargo -V
# Build settings, not to be confused with "before_build" and "after_build".
build: false
build_script:
- cargo build --features deny-warnings
test_script:
- cargo test --features deny-warnings
notifications:
- provider: Email
on_build_success: false