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
+ - TARGET : x86_64-pc-windows-msvc
20
+ NO_ADD : 1
21
+ ALLOW_PR : 1
22
+ - TARGET : i686-pc-windows-msvc
23
+ access_token :
24
+ secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
25
+
26
+ matrix :
27
+ fast_finish : true # set this flag to immediately finish build once one of the jobs fails.
17
28
18
29
install :
19
30
# If this is a PR and we're not allowed to test PRs, skip the whole build.
@@ -25,22 +36,25 @@ install:
25
36
# Install rust, x86_64-pc-windows-msvc host
26
37
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
27
38
- rustup-init.exe -y --default-host=x86_64-pc-windows-msvc
28
- - set PATH=%PATH%;C:\Users\appveyor \.cargo\bin
39
+ - set PATH=%PATH%;%USERPROFILE% \.cargo\bin
29
40
- del rustup-init.exe
30
41
31
42
# Install the target we're compiling for
32
43
- if NOT defined NO_ADD rustup target add %TARGET%
33
44
34
45
# let's see what we got
35
- - where gcc rustc cargo
46
+ - where rustc cargo
36
47
- rustc -vV
37
- - cargo -vV
48
+ - cargo -V
38
49
50
+ # Build settings, not to be confused with "before_build" and "after_build".
39
51
build : false
40
52
41
- test_script :
53
+ build_script :
42
54
- cargo build --release --target %TARGET% --locked
43
55
- cargo run --release --target %TARGET% --locked -- --dump-testament
56
+
57
+ test_script :
44
58
- cargo test --release --target %TARGET%
45
59
46
60
after_test :
0 commit comments