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
- ALLOW_PR : 1
8
- - TARGET : i686-pc-windows-msvc
9
- - TARGET : x86_64-pc-windows-gnu
10
- MINGW_DIR : mingw64
11
- - TARGET : i686-pc-windows-gnu
12
- MINGW_DIR : mingw32
13
- access_token :
14
- secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
2
+
15
3
branches :
4
+ # whitelist
16
5
only :
17
6
- master
18
7
- stable
19
8
- auto
9
+ cache :
10
+ - ' %USERPROFILE%\.cargo\'
11
+ - target
12
+
13
+ environment :
14
+ global :
15
+ RUSTFLAGS : -Ctarget-feature=+crt-static
16
+ RUST_BACKTRACE : 1
17
+ matrix :
18
+ - TARGET : x86_64-pc-windows-msvc
19
+ NO_ADD : 1
20
+ ALLOW_PR : 1
21
+ - TARGET : i686-pc-windows-msvc
22
+ - TARGET : x86_64-pc-windows-gnu
23
+ MINGW_DIR : mingw64
24
+ - TARGET : i686-pc-windows-gnu
25
+ MINGW_DIR : mingw32
26
+ access_token :
27
+ secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
28
+
29
+ matrix :
30
+ fast_finish : true # set this flag to immediately finish build once one of the jobs fails.
20
31
21
32
install :
22
33
# If this is a PR and we're not allowed to test PRs, skip the whole build.
@@ -50,7 +61,7 @@ install:
50
61
# Install rust, x86_64-pc-windows-msvc host
51
62
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
52
63
- rustup-init.exe -y --default-host=x86_64-pc-windows-msvc
53
- - set PATH=%PATH%;C:\Users\appveyor \.cargo\bin
64
+ - set PATH=%PATH%;%USERPROFILE% \.cargo\bin
54
65
- del rustup-init.exe
55
66
56
67
# Install the target we're compiling for
@@ -64,13 +75,16 @@ install:
64
75
# let's see what we got
65
76
- where gcc rustc cargo
66
77
- rustc -vV
67
- - cargo -vV
78
+ - cargo -V
68
79
80
+ # Build settings, not to be confused with "before_build" and "after_build".
69
81
build : false
70
82
71
- test_script :
83
+ build_script :
72
84
- cargo build --release --target %TARGET% --locked
73
85
- cargo run --release --target %TARGET% --locked -- --dump-testament
86
+
87
+ test_script :
74
88
# The rest of this relies on the set of things to test not changing
75
89
# because I have no idea how to script it. TODO: Get someone to script it?
76
90
- cargo test --release --target %TARGET% -p download
@@ -89,10 +103,6 @@ test_script:
89
103
- cargo test --release --target %TARGET% --test dist -- --test-threads 1
90
104
- cargo test --release --target %TARGET% --test dist_transactions
91
105
92
- notifications :
93
- - provider : Webhook
94
- url : https://webhooks.gitter.im/e/9907ad94eb7a5ff291c3
95
-
96
106
after_test :
97
107
- powershell -File ci/prepare-deploy-appveyor.ps1
98
108
0 commit comments