forked from rust-lang/futures-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
231 lines (206 loc) · 11.2 KB
/
.travis.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
language: rust
sudo: false
# TODO: https://github.com/rust-lang-nursery/futures-rs/pull/1681#issuecomment-507791279
# cache: cargo
stages:
- name: test
- name: release
if: tag IS present
matrix:
include:
# This is the minimum Rust version supported by futures-rs.
# When updating this, the reminder to update the minimum required version in README.md.
- name: cargo build (minimum required version)
rust: 1.36.0
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
# Check no-default-features
- cargo build --manifest-path futures/Cargo.toml --no-default-features
- cargo build --manifest-path futures-core/Cargo.toml --no-default-features
- cargo build --manifest-path futures-channel/Cargo.toml --no-default-features
- cargo build --manifest-path futures-executor/Cargo.toml --no-default-features
- cargo build --manifest-path futures-io/Cargo.toml --no-default-features
- cargo build --manifest-path futures-sink/Cargo.toml --no-default-features
- cargo build --manifest-path futures-util/Cargo.toml --no-default-features
# Check alloc feature
- cargo build --manifest-path futures/Cargo.toml --no-default-features --features alloc
- cargo build --manifest-path futures-core/Cargo.toml --no-default-features --features alloc
- cargo build --manifest-path futures-sink/Cargo.toml --no-default-features --features alloc
- cargo build --manifest-path futures-channel/Cargo.toml --no-default-features --features alloc
- cargo build --manifest-path futures-util/Cargo.toml --no-default-features --features alloc
# Check std feature
- cargo build --manifest-path futures/Cargo.toml --no-default-features --features std
- cargo build --manifest-path futures-core/Cargo.toml --no-default-features --features std
- cargo build --manifest-path futures-channel/Cargo.toml --no-default-features --features std
- cargo build --manifest-path futures-executor/Cargo.toml --no-default-features --features std
- cargo build --manifest-path futures-io/Cargo.toml --no-default-features --features std
- cargo build --manifest-path futures-sink/Cargo.toml --no-default-features --features std
- cargo build --manifest-path futures-util/Cargo.toml --no-default-features --features std
# Check compat & thread-pool features
- cargo build --manifest-path futures/Cargo.toml --no-default-features --features std,io-compat
- cargo build --manifest-path futures-util/Cargo.toml --no-default-features --features std,io-compat
- cargo build --manifest-path futures/Cargo.toml --no-default-features --features std,thread-pool
# This is the minimum Rust version supported by `async-await` feature.
# When updating this, the reminder to update the minimum required version of `async-await` feature in README.md.
- name: cargo build --features async-await (minimum required version)
rust: 1.39.0
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
# async-await feature is activated by default.
- cargo build --all
- name: cargo +stable build
rust: stable
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
# Check default-features
- cargo build --all
# Check compat & thread-pool & async-await features
- cargo build --manifest-path futures/Cargo.toml --features io-compat
- cargo build --manifest-path futures/Cargo.toml --features thread-pool
- cargo build --manifest-path futures/Cargo.toml --features async-await
- name: cargo +beta build
rust: beta
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
# Check default-features
- cargo build --all
# Check compat & thread-pool & async-await features
- cargo build --manifest-path futures/Cargo.toml --features io-compat
- cargo build --manifest-path futures/Cargo.toml --features thread-pool
- cargo build --manifest-path futures/Cargo.toml --features async-await
- name: cargo test
rust: nightly
os: osx
- name: cargo test
rust: nightly
os: linux
- name: cargo build (with minimal versions)
rust: nightly
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
- cargo update -Zminimal-versions
- cargo build --all --all-features
- name: cargo clippy
rust: nightly
script:
- if ! rustup component add clippy; then
target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy`;
echo "'clippy' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";
rustup toolchain install nightly-$target;
rustup default nightly-$target;
rustup component add clippy;
fi
- cargo clippy --all --all-features
- name: cargo bench
rust: nightly
script:
- cargo bench --all
- cargo bench --manifest-path futures-util/Cargo.toml --features=bilock,unstable
- name: cargo build --target=thumbv6m-none-eabi
rust: nightly
install:
- rustup target add thumbv6m-none-eabi
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
- cargo build --manifest-path futures/Cargo.toml
--target thumbv6m-none-eabi
--no-default-features
--features unstable,cfg-target-has-atomic
- cargo build --manifest-path futures/Cargo.toml
--target thumbv6m-none-eabi
--no-default-features
--features unstable,cfg-target-has-atomic,alloc
- cargo build --manifest-path futures/Cargo.toml
--target thumbv6m-none-eabi
--no-default-features
--features unstable,cfg-target-has-atomic,async-await
- name: cargo build --target=thumbv7m-none-eabi
rust: nightly
install:
- rustup target add thumbv7m-none-eabi
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
- cargo build --manifest-path futures/Cargo.toml
--target thumbv7m-none-eabi
--no-default-features
- cargo build --manifest-path futures/Cargo.toml
--target thumbv7m-none-eabi
--no-default-features
--features alloc
- cargo build --manifest-path futures/Cargo.toml
--target thumbv7m-none-eabi
--no-default-features
--features async-await
- name: cargo check (features)
rust: nightly
script:
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
# futures
# Check default-features, all-features
- cargo check --manifest-path futures/Cargo.toml
- cargo check --manifest-path futures/Cargo.toml --all-features
# Check each features
- cargo check --manifest-path futures/Cargo.toml --features async-await
- cargo check --manifest-path futures/Cargo.toml --features compat
- cargo check --manifest-path futures/Cargo.toml --features io-compat
- cargo check --manifest-path futures/Cargo.toml --features read-initializer,unstable
- cargo check --manifest-path futures/Cargo.toml --features bilock,unstable
# Check each features with --no-default-features
- cargo check --manifest-path futures/Cargo.toml --no-default-features --features async-await
- cargo check --manifest-path futures/Cargo.toml --no-default-features --features compat
- cargo check --manifest-path futures/Cargo.toml --no-default-features --features io-compat
- cargo check --manifest-path futures/Cargo.toml --no-default-features --features executor
# futures-io
# Check default-features, all-features
- cargo check --manifest-path futures-io/Cargo.toml
- cargo check --manifest-path futures-io/Cargo.toml --all-features
# Check each features
- cargo check --manifest-path futures-io/Cargo.toml --features read-initializer,unstable
# futures-util
# Check default-features, all-features
- cargo check --manifest-path futures-util/Cargo.toml
- cargo check --manifest-path futures-util/Cargo.toml --all-features
# Check each features
- cargo check --manifest-path futures-util/Cargo.toml --features sink
- cargo check --manifest-path futures-util/Cargo.toml --features io
- cargo check --manifest-path futures-util/Cargo.toml --features channel
- cargo check --manifest-path futures-util/Cargo.toml --features async-await
- cargo check --manifest-path futures-util/Cargo.toml --features async-await-macro
- cargo check --manifest-path futures-util/Cargo.toml --features compat
- cargo check --manifest-path futures-util/Cargo.toml --features io-compat
- cargo check --manifest-path futures-util/Cargo.toml --features sink,compat
- cargo check --manifest-path futures-util/Cargo.toml --features sink,channel
- cargo check --manifest-path futures-util/Cargo.toml --features bilock,unstable
- cargo check --manifest-path futures-util/Cargo.toml --features sink,bilock,unstable
- cargo check --manifest-path futures-util/Cargo.toml --features io,bilock,unstable
- cargo check --manifest-path futures-util/Cargo.toml --features sink,io
- cargo check --manifest-path futures-util/Cargo.toml --features read-initializer,unstable
# Check each features with --no-default-features
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features sink
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features alloc,sink
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features async-await
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features bilock,unstable
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features sink,bilock,unstable
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features io,bilock,unstable
# futures-executor
# Check default-features, all-features
- cargo check --manifest-path futures-executor/Cargo.toml
- cargo check --manifest-path futures-executor/Cargo.toml --all-features
# Check each features
- cargo check --manifest-path futures-executor/Cargo.toml --features thread-pool
# Check each features with --no-default-features
- cargo check --manifest-path futures-executor/Cargo.toml --no-default-features --features thread-pool
- name: cargo doc
rust: nightly
script:
- RUSTDOCFLAGS=-Dwarnings cargo doc --all --no-deps --all-features
script:
- cargo test --all --all-features
- cargo test --all --all-features --release
env:
global:
- RUSTFLAGS=-Dwarnings
notifications:
email:
on_success: never