-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
64 lines (53 loc) · 1.4 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '{build}'
skip_branch_with_pr: true
skip_tags: true
max_jobs: 6
matrix:
fast_finish: true
environment:
# TODO have matrix expand to include stable, beta, and nightly
matrix:
# Rust - Stable
- TARGET: i686-pc-windows-gnu
RUST_VERSION: stable
BITS: 32
MSYS2: 1
- TARGET: x86_64-pc-windows-msvc
RUST_VERSION: stable
BITS: 64
# Rust - Beta
- TARGET: i686-pc-windows-gnu
RUST_VERSION: beta
BITS: 32
MSYS2: 1
- TARGET: x86_64-pc-windows-msvc
RUST_VERSION: beta
BITS: 64
# Rust - Nightly
- TARGET: i686-pc-windows-gnu
RUST_VERSION: nightly
BITS: 32
MSYS2: 1
- TARGET: x86_64-pc-windows-msvc
RUST_VERSION: nightly
BITS: 64
install:
# Install Rust
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- if defined MSYS2 set PATH=C:\msys64\mingw%BITS%\bin;%PATH%
build: false
test_script:
- rustup.exe default %RUST_VERSION%
- rustc -V
- cargo -V
- git submodule update --init --recursive
- SET RUST_BACKTRACE=full
- cargo build --verbose --target %TARGET%
- cargo test --verbose --no-run --target %TARGET%
- SET RUST_LOG=debug
- cargo test --verbose --target %TARGET%
# TODO on failure cat Cargo.lock (but only we can't use make)
cache:
- C:\Users\appveyor\.cargo\bin