-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
95 lines (83 loc) · 2.79 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
# Since we use custom test script, disable the default build action
build: false
# The Rust target platforms
platform:
- 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=
- --features=native_types
- --features=std
#- --features=no_panic
- --features=native_types,std
#- --features=std,no_panic
#- --features=no_panic,native_types
#- --features=native_types,std,no_panic
# 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:
# Early-abort no_panic builds on windows
- ps: |
if ($env:CONFIGURATION -match ".*no_panic.*" ) {
Exit-AppveyorBuild
}
- cmd: appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- cmd: rustup-init.exe -y --default-host "%PLATFORM%"
- cmd: set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
test_script:
- cmd: cargo test --verbose --no-default-features %CONFIGURATION%
- cmd: 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:
- sh: curl https://sh.rustup.rs -sSf -o rustup-init.sh
- sh: sh rustup-init.sh -y --default-host "$PLATFORM"
- sh: source $HOME/.cargo/env
test_script:
# Skip no_panic tests for debug builds
- sh: |
if ! echo "$CONFIGURATION" | grep -q ".*no_panic.*"; then
cargo test --verbose --no-default-features $CONFIGURATION
fi
- sh: 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:
- sh: curl https://sh.rustup.rs -sSf -o rustup-init.sh
- sh: sh rustup-init.sh -y --default-host "$PLATFORM"
- sh: source $HOME/.cargo/env
test_script:
# Skip no_panic tests for debug builds
- sh: |
if ! echo "$CONFIGURATION" | grep -q ".*no_panic.*"; then
cargo test --verbose --no-default-features $CONFIGURATION
fi
- sh: cargo test --verbose --release --no-default-features $CONFIGURATION