-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathappveyor.yml
97 lines (87 loc) · 2.86 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Copyright 2017 the authors. See the 'Copyright and license' section of the
# README.md file at the top-level directory of this repository.
#
# Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
# the MIT license (the LICENSE-MIT file) at your option. This file may not be
# copied, modified, or distributed except according to those terms.
# Partially adapted from https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml
# Description of environment variables:
# CHANNEL - stable/beta/nightly
# TARGET - target platform
# CYGWIN_BASH - cygwin's bash binary
# RUST_NIGHTLY - set to "1" on the nightly channel so that appveyor.sh scripts
# can check for it
environment:
matrix:
### MSVC Toolchains ###
# Stable 64-bit MSVC
- CHANNEL: stable
TARGET: x86_64-pc-windows-msvc
CYGWIN_BASH: C:\Cygwin64\bin\bash
# Stable 32-bit MSVC
- CHANNEL: stable
TARGET: i686-pc-windows-msvc
CYGWIN_BASH: C:\Cygwin\bin\bash
# Beta 64-bit MSVC
- CHANNEL: beta
TARGET: x86_64-pc-windows-msvc
CYGWIN_BASH: C:\Cygwin64\bin\bash
# Beta 32-bit MSVC
- CHANNEL: beta
TARGET: i686-pc-windows-msvc
CYGWIN_BASH: C:\Cygwin\bin\bash
# Nightly 64-bit MSVC
- CHANNEL: nightly
TARGET: x86_64-pc-windows-msvc
CYGWIN_BASH: C:\Cygwin64\bin\bash
RUST_NIGHTLY: 1
# Nightly 32-bit MSVC
- CHANNEL: nightly
TARGET: i686-pc-windows-msvc
CYGWIN_BASH: C:\Cygwin\bin\bash
RUST_NIGHTLY: 1
### GNU Toolchains ###
# Stable 64-bit GNU
- CHANNEL: stable
TARGET: x86_64-pc-windows-gnu
CYGWIN_BASH: C:\Cygwin64\bin\bash
# Stable 32-bit GNU
- CHANNEL: stable
TARGET: i686-pc-windows-gnu
CYGWIN_BASH: C:\Cygwin\bin\bash
# Beta 64-bit GNU
- CHANNEL: beta
TARGET: x86_64-pc-windows-gnu
CYGWIN_BASH: C:\Cygwin64\bin\bash
# Beta 32-bit GNU
- CHANNEL: beta
TARGET: i686-pc-windows-gnu
CYGWIN_BASH: C:\Cygwin\bin\bash
# Nightly 64-bit GNU
- CHANNEL: nightly
TARGET: x86_64-pc-windows-gnu
CYGWIN_BASH: C:\Cygwin64\bin\bash
RUST_NIGHTLY: 1
# Nightly 32-bit GNU
- CHANNEL: nightly
TARGET: i686-pc-windows-gnu
CYGWIN_BASH: C:\Cygwin\bin\bash
RUST_NIGHTLY: 1
# NOTE: The %CHANNEL% and %TARGET% environment variables are taken from the
# build matrix defined above.
install:
- curl -fsS --retry 10 --retry-connrefused -o rustup-init.exe https://win.rustup.rs/
- rustup-init -yv --default-toolchain %CHANNEL% --default-host %TARGET%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
# We build ourselves (in the test script)
build: false
test_script:
- "%CYGWIN_BASH% -c 'set -x; set -e; for script in */appveyor.sh; do
dir=$(dirname \"$script\");
file=$(basename \"$script\");
pushd \"$dir\";
./$file;
popd;
done'"