1
1
image : 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
12
4
branches :
5
+ # whitelist
13
6
only :
14
7
- master
15
8
- stable
16
9
- 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
17
26
18
27
install :
19
28
# If this is a PR and we're not allowed to test PRs, skip the whole build.
@@ -25,22 +34,25 @@ install:
25
34
# Install rust, x86_64-pc-windows-msvc host
26
35
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
27
36
- 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
29
38
- del rustup-init.exe
30
39
31
40
# Install the target we're compiling for
32
41
- if NOT defined NO_ADD rustup target add %TARGET%
33
42
34
43
# let's see what we got
35
- - where gcc rustc cargo
44
+ - where rustc cargo
36
45
- rustc -vV
37
- - cargo -vV
46
+ - cargo -V
38
47
48
+ # Build settings, not to be confused with "before_build" and "after_build".
39
49
build : false
40
50
41
- test_script :
51
+ build_script :
42
52
- cargo build --release --target %TARGET% --locked
43
53
- cargo run --release --target %TARGET% --locked -- --dump-testament
54
+
55
+ test_script :
44
56
- cargo test --release --target %TARGET%
45
57
46
58
after_test :
0 commit comments