11image : Visual Studio 2017
2- environment :
3- RUSTFLAGS : -Ctarget-feature=+crt-static
4- RUST_BACKTRACE : 1
5- matrix :
6- - TARGET : x86_64-pc-windows-msvc
7- NO_ADD : 1
8- ALLOW_PR : 1
9- - TARGET : i686-pc-windows-msvc
10- access_token :
11- secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
2+
3+ # branches to build
124branches :
5+ # whitelist
136 only :
147 - master
158 - stable
169 - auto
10+ cache :
11+ - ' %USERPROFILE%\.cargo\registry'
12+ - target
13+
14+ environment :
15+ global :
16+ RUSTFLAGS : -Ctarget-feature=+crt-static
17+ RUST_BACKTRACE : 1
18+ matrix :
19+ fast_finish : true
20+ - TARGET : x86_64-pc-windows-msvc
21+ NO_ADD : 1
22+ ALLOW_PR : 1
23+ - TARGET : i686-pc-windows-msvc
24+ access_token :
25+ secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
1726
1827install :
1928 # If this is a PR and we're not allowed to test PRs, skip the whole build.
@@ -25,22 +34,25 @@ install:
2534 # Install rust, x86_64-pc-windows-msvc host
2635 - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
2736 - rustup-init.exe -y --default-host=x86_64-pc-windows-msvc
28- - set PATH=%PATH%;C:\Users\appveyor \.cargo\bin
37+ - set PATH=%PATH%;%USERPROFILE% \.cargo\bin
2938 - del rustup-init.exe
3039
3140 # Install the target we're compiling for
3241 - if NOT defined NO_ADD rustup target add %TARGET%
3342
3443 # let's see what we got
35- - where gcc rustc cargo
44+ - where rustc cargo
3645 - rustc -vV
37- - cargo -vV
46+ - cargo -V
3847
48+ # Build settings, not to be confused with "before_build" and "after_build".
3949build : false
4050
41- test_script :
51+ build_script :
4252 - cargo build --release --target %TARGET% --locked
4353 - cargo run --release --target %TARGET% --locked -- --dump-testament
54+
55+ test_script :
4456 - cargo test --release --target %TARGET%
4557
4658after_test :
0 commit comments