|
1 | 1 | environment: |
2 | | - global: |
3 | | - PROJECT_NAME: rust-clippy |
4 | | - matrix: |
5 | | - #- TARGET: i686-pc-windows-gnu |
6 | | - #- TARGET: i686-pc-windows-msvc |
7 | | - #- TARGET: x86_64-pc-windows-gnu |
8 | | - - TARGET: x86_64-pc-windows-msvc |
| 2 | + global: |
| 3 | + PROJECT_NAME: rust-clippy |
| 4 | + RUST_BACKTRACE: 1 |
| 5 | + matrix: |
| 6 | + #- TARGET: i686-pc-windows-gnu |
| 7 | + #- TARGET: i686-pc-windows-msvc |
| 8 | + #- TARGET: x86_64-pc-windows-gnu |
| 9 | + - TARGET: x86_64-pc-windows-msvc |
9 | 10 |
|
10 | 11 | branches: |
11 | | - # Only build AppVeyor on r+ and try branch |
12 | | - only: |
13 | | - - auto |
14 | | - - try |
| 12 | + # Only build AppVeyor on r+ and try branch |
| 13 | + only: |
| 14 | + - auto |
| 15 | + - try |
15 | 16 |
|
16 | 17 | cache: |
17 | | - - '%USERPROFILE%\.cargo' |
| 18 | + - '%USERPROFILE%\.cargo' |
| 19 | +# before cache |
18 | 20 | after_test: |
19 | | - - cargo install -Z install-upgrade cargo-cache --debug |
20 | | - - cargo cache --autoclean |
| 21 | + - cargo install -Z install-upgrade cargo-cache --debug |
| 22 | + - cargo cache --autoclean |
21 | 23 |
|
22 | 24 | install: |
23 | | - - curl -sSf -o rustup-init.exe https://win.rustup.rs/ |
24 | | - - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal |
25 | | - - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin |
26 | | - - del rust-toolchain |
27 | | - - cargo install -Z install-upgrade rustup-toolchain-install-master |
28 | | - - rustup-toolchain-install-master -f -n master -c rustc-dev |
29 | | - - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt |
30 | | - - rustup default master |
31 | | - - set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin |
32 | | - - rustc -V |
33 | | - - cargo -V |
| 25 | + - curl -sSf -o rustup-init.exe https://win.rustup.rs/ |
| 26 | + - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal |
| 27 | + - set PATH=%USERPROFILE%\.cargo\bin;%PATH% |
| 28 | + - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt |
| 29 | + - del rust-toolchain |
| 30 | + - cargo install -Z install-upgrade rustup-toolchain-install-master |
| 31 | + - rustup-toolchain-install-master -f -n master -c rustc-dev |
| 32 | + - rustup override set master |
| 33 | + - rustc -V |
| 34 | + - cargo -V |
34 | 35 |
|
| 36 | +# Build settings, not to be confused with "before_build" and "after_build". |
35 | 37 | build: false |
36 | 38 |
|
| 39 | +build_script: |
| 40 | + - cargo build --features debugging |
| 41 | + |
37 | 42 | test_script: |
38 | | - - set RUST_BACKTRACE=1 |
39 | | - - cargo build --features debugging |
40 | | - - cargo test --features debugging |
| 43 | + - cargo test --features debugging |
41 | 44 |
|
42 | 45 | notifications: |
43 | | - - provider: Email |
44 | | - on_build_success: false |
| 46 | + - provider: Email |
| 47 | + on_build_success: false |
0 commit comments