Skip to content

Commit 41e2d38

Browse files
committed
appveyor: some minor config improvements
* Add cache support * Finish all build jobs if one failed * Disable notifications to unknown webhook
1 parent 8096e9a commit 41e2d38

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

appveyor.yml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
11
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+
153
branches:
4+
# whitelist
165
only:
176
- master
187
- stable
198
- 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.
2031

2132
install:
2233
# If this is a PR and we're not allowed to test PRs, skip the whole build.
@@ -50,7 +61,7 @@ install:
5061
# Install rust, x86_64-pc-windows-msvc host
5162
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
5263
- 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
5465
- del rustup-init.exe
5566

5667
# Install the target we're compiling for
@@ -64,13 +75,16 @@ install:
6475
# let's see what we got
6576
- where gcc rustc cargo
6677
- rustc -vV
67-
- cargo -vV
78+
- cargo -V
6879

80+
# Build settings, not to be confused with "before_build" and "after_build".
6981
build: false
7082

71-
test_script:
83+
build_script:
7284
- cargo build --release --target %TARGET% --locked
7385
- cargo run --release --target %TARGET% --locked -- --dump-testament
86+
87+
test_script:
7488
# The rest of this relies on the set of things to test not changing
7589
# because I have no idea how to script it. TODO: Get someone to script it?
7690
- cargo test --release --target %TARGET% -p download
@@ -89,10 +103,6 @@ test_script:
89103
- cargo test --release --target %TARGET% --test dist -- --test-threads 1
90104
- cargo test --release --target %TARGET% --test dist_transactions
91105

92-
notifications:
93-
- provider: Webhook
94-
url: https://webhooks.gitter.im/e/9907ad94eb7a5ff291c3
95-
96106
after_test:
97107
- powershell -File ci/prepare-deploy-appveyor.ps1
98108

0 commit comments

Comments
 (0)