Skip to content

Commit eba9080

Browse files
committed
appveyor: Minor config change
1 parent 37ea436 commit eba9080

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

appveyor.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
environment:
22
global:
33
PROJECT_NAME: rust-clippy
4+
RUST_BACKTRACE: 1
45
matrix:
56
#- TARGET: i686-pc-windows-gnu
67
#- TARGET: i686-pc-windows-msvc
@@ -15,28 +16,30 @@ branches:
1516

1617
cache:
1718
- '%USERPROFILE%\.cargo'
19+
# before cache
1820
after_test:
1921
- cargo install -Z install-upgrade cargo-cache --debug
2022
- cargo cache --autoclean
2123

2224
install:
2325
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
2426
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
25-
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
27+
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
28+
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
2629
- del rust-toolchain
2730
- cargo install -Z install-upgrade rustup-toolchain-install-master
2831
- 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+
- rustup override set master
3233
- rustc -V
3334
- cargo -V
3435

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

37-
test_script:
38-
- set RUST_BACKTRACE=1
39+
build_script:
3940
- cargo build --features debugging
41+
42+
test_script:
4043
- cargo test --features debugging
4144

4245
notifications:

0 commit comments

Comments
 (0)