-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
76 lines (64 loc) · 2.12 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
# Since we use custom test script, disable the default build action
build: false
# The Rust target platforms
platform:
# Disable windows builds
# - x86_64-pc-windows-msvc
# - i686-pc-windows-msvc
# - x86_64-pc-windows-gnu
# - i686-pc-windows-gnu
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
# The Rust feature matrix
configuration:
- --features=
# General environment vars
environment:
# Promote warnings to errors
RUSTFLAGS: -D warnings
# Fail fast if one job in the matrix fails
matrix:
fast_finish: true
for:
# Windows specific build settings
- matrix:
only:
- platform: x86_64-pc-windows-msvc
- platform: i686-pc-windows-msvc
- platform: x86_64-pc-windows-gnu
- platform: i686-pc-windows-gnu
environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host "%PLATFORM%"
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
test_script:
- cargo test --verbose --no-default-features %CONFIGURATION%
- cargo test --verbose --release --no-default-features %CONFIGURATION%
# Linux specific build settings
- matrix:
only:
- platform: x86_64-unknown-linux-gnu
environment:
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
install:
- curl https://sh.rustup.rs -sSf -o rustup-init.sh
- sh rustup-init.sh -y --default-host "$PLATFORM"
- source $HOME/.cargo/env
test_script:
- cargo test --verbose --no-default-features $CONFIGURATION
- cargo test --verbose --release --no-default-features $CONFIGURATION
# macOS specific build settings
- matrix:
only:
- platform: x86_64-apple-darwin
environment:
APPVEYOR_BUILD_WORKER_IMAGE: macOS
install:
- curl https://sh.rustup.rs -sSf -o rustup-init.sh
- sh rustup-init.sh -y --default-host "$PLATFORM"
- source $HOME/.cargo/env
test_script:
- cargo test --verbose --no-default-features $CONFIGURATION
- cargo test --verbose --release --no-default-features $CONFIGURATION