-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.appveyor.yml
58 lines (57 loc) · 1.64 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
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
platform:
- x86
- x64
environment:
matrix:
- RUST_VERSION: stable
BUILD_TARGET: msvc
- RUST_VERSION: stable
BUILD_TARGET: gnu
- RUST_VERSION: nightly
BUILD_TARGET: msvc
- RUST_VERSION: nightly
BUILD_TARGET: gnu
matrix:
allow_failures:
- BUILD_TARGET: msvc
platform: x86
- RUST_VERSION: nightly
branches:
only:
- master
- /v\d+\.\d+\.\d+/
cache:
- target
- '%USERPROFILE%\.cargo\registry'
install:
- ps: |
$env:PATH += ";${env:USERPROFILE}\.cargo\bin";
if ($env:platform -eq 'x86') {
$env:RUST_ARCH = "i686-pc-windows-${env:BUILD_TARGET}";
$env:ARCH = "x86";
$env:bits = "32";
} else {
$env:RUST_ARCH = "x86_64-pc-windows-${env:BUILD_TARGET}";
$env:ARCH = "amd64";
$env:bits ="64";
}
if ($env:BUILD_TARGET -eq 'gnu') {
$env:PATH += ";C:\msys64\mingw${env:bits}\bin";
gcc --version;
}
- curl --fail --retry 3 --silent --show-error --location -o rustup-init.exe https://win.rustup.rs
- rustup-init.exe --default-host %RUST_ARCH% --default-toolchain %RUST_VERSION% -y
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%
- rustc -vV
- cargo -vV
build: false
test_script:
# we don't run the "test phase" when doing deploys
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo build --target %RUST_ARCH% &&
cargo build --target %RUST_ARCH% --release &&
cargo test --target %RUST_ARCH% &&
cargo test --target %RUST_ARCH% --release
)