Skip to content

Commit 42f32a0

Browse files
committed
Auto merge of #4724 - lzutao:minor-appveyor, r=phansch
appveyor: minor syntax change Use this link to review diff: https://github.com/rust-lang/rust-clippy/pull/4724/files?w=1 changelog: none
2 parents bfef48f + 97d76f5 commit 42f32a0

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

appveyor.yml

+33-30
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,47 @@
11
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
910

1011
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
1516

1617
cache:
17-
- '%USERPROFILE%\.cargo'
18+
- '%USERPROFILE%\.cargo'
19+
# before cache
1820
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
2123

2224
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
3435

36+
# Build settings, not to be confused with "before_build" and "after_build".
3537
build: false
3638

39+
build_script:
40+
- cargo build --features debugging
41+
3742
test_script:
38-
- set RUST_BACKTRACE=1
39-
- cargo build --features debugging
40-
- cargo test --features debugging
43+
- cargo test --features debugging
4144

4245
notifications:
43-
- provider: Email
44-
on_build_success: false
46+
- provider: Email
47+
on_build_success: false

0 commit comments

Comments
 (0)