2019-06-24 12:34:30 -07:00
|
|
|
trigger: ["master", "std-future"]
|
|
|
|
|
pr: ["master", "std-future"]
|
2019-03-01 09:12:21 -08:00
|
|
|
|
2019-05-14 10:27:36 -07:00
|
|
|
variables:
|
2019-08-21 12:07:16 +09:00
|
|
|
nightly: nightly-2019-08-21
|
2019-08-10 00:07:57 +09:00
|
|
|
RUSTFLAGS: -Dwarnings
|
2019-05-14 10:27:36 -07:00
|
|
|
|
2019-03-01 09:12:21 -08:00
|
|
|
jobs:
|
2019-06-27 00:05:01 -07:00
|
|
|
# Check formatting
|
|
|
|
|
- template: ci/azure-rustfmt.yml
|
|
|
|
|
parameters:
|
|
|
|
|
rust: $(nightly)
|
|
|
|
|
name: rustfmt
|
2019-03-01 09:12:21 -08:00
|
|
|
|
2019-07-26 03:47:14 +09:00
|
|
|
# Apply clippy lints to all crates
|
|
|
|
|
- template: ci/azure-clippy.yml
|
|
|
|
|
parameters:
|
|
|
|
|
rust: $(nightly)
|
|
|
|
|
name: clippy
|
|
|
|
|
|
2019-03-01 09:12:21 -08:00
|
|
|
# Test top level crate
|
2019-06-25 16:51:49 -04:00
|
|
|
- template: ci/azure-test-stable.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_tokio
|
|
|
|
|
rust: $(nightly)
|
|
|
|
|
displayName: Test tokio
|
|
|
|
|
cross: true
|
|
|
|
|
crates:
|
2019-06-30 08:48:53 -07:00
|
|
|
tokio:
|
2019-08-07 20:02:13 -07:00
|
|
|
- codec
|
|
|
|
|
- fs
|
|
|
|
|
- io
|
|
|
|
|
- rt-full
|
|
|
|
|
- net
|
|
|
|
|
- sync
|
|
|
|
|
- tcp
|
|
|
|
|
- timer
|
|
|
|
|
- udp
|
|
|
|
|
- uds
|
2019-03-01 09:12:21 -08:00
|
|
|
|
|
|
|
|
# Test crates that are platform specific
|
|
|
|
|
- template: ci/azure-test-stable.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_sub_cross
|
2019-06-24 12:34:30 -07:00
|
|
|
displayName: Test sub crates (cross) -
|
2019-03-01 09:12:21 -08:00
|
|
|
cross: true
|
2019-06-24 12:34:30 -07:00
|
|
|
rust: $(nightly)
|
2019-03-01 09:12:21 -08:00
|
|
|
crates:
|
2019-07-11 11:05:49 -05:00
|
|
|
tokio-fs: []
|
2019-08-15 20:37:25 -07:00
|
|
|
tokio-net:
|
2019-08-19 19:42:54 -07:00
|
|
|
- process
|
2019-08-17 13:43:55 -07:00
|
|
|
- signal
|
2019-08-15 20:37:25 -07:00
|
|
|
- tcp
|
2019-08-16 07:26:10 -07:00
|
|
|
- udp
|
2019-08-16 14:42:05 -07:00
|
|
|
- uds
|
2019-03-01 09:12:21 -08:00
|
|
|
|
|
|
|
|
# Test crates that are NOT platform specific
|
|
|
|
|
- template: ci/azure-test-stable.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_linux
|
2019-03-19 14:58:59 -07:00
|
|
|
displayName: Test sub crates -
|
2019-06-24 12:34:30 -07:00
|
|
|
rust: $(nightly)
|
2019-03-01 09:12:21 -08:00
|
|
|
crates:
|
2019-08-07 20:02:13 -07:00
|
|
|
tokio-buf: []
|
2019-07-03 08:49:05 -07:00
|
|
|
tokio-codec: []
|
2019-08-15 09:52:25 -07:00
|
|
|
tokio-executor:
|
|
|
|
|
- current-thread
|
2019-08-15 13:09:02 -07:00
|
|
|
- threadpool
|
2019-08-02 12:59:24 -07:00
|
|
|
tokio-io:
|
|
|
|
|
- util
|
2019-06-30 08:48:53 -07:00
|
|
|
tokio-sync:
|
2019-07-03 08:49:05 -07:00
|
|
|
- async-traits
|
|
|
|
|
tokio-macros: []
|
2019-06-30 08:48:53 -07:00
|
|
|
tokio-timer:
|
|
|
|
|
- async-traits
|
2019-07-03 08:49:05 -07:00
|
|
|
tokio-test: []
|
2019-03-01 09:12:21 -08:00
|
|
|
|
2019-08-15 09:52:25 -07:00
|
|
|
# Test compilation failure
|
|
|
|
|
- template: ci/azure-test-stable.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_features
|
|
|
|
|
displayName: Test feature flags
|
|
|
|
|
rust: $(nightly)
|
|
|
|
|
crates:
|
2019-08-16 09:26:56 -07:00
|
|
|
build-tests:
|
2019-08-15 20:37:25 -07:00
|
|
|
- tokio-executor
|
|
|
|
|
- tokio-net
|
2019-08-15 09:52:25 -07:00
|
|
|
- executor-without-current-thread
|
2019-08-15 20:37:25 -07:00
|
|
|
- net-no-features
|
|
|
|
|
- net-with-tcp
|
2019-08-16 07:26:10 -07:00
|
|
|
- net-with-udp
|
2019-08-16 14:42:05 -07:00
|
|
|
- net-with-uds
|
2019-08-15 11:04:58 -07:00
|
|
|
- tokio-no-features
|
|
|
|
|
- tokio-with-net
|
2019-08-15 09:52:25 -07:00
|
|
|
|
2019-06-24 12:34:30 -07:00
|
|
|
# # Try cross compiling
|
|
|
|
|
# - template: ci/azure-cross-compile.yml
|
|
|
|
|
# parameters:
|
|
|
|
|
# name: cross_32bit_linux
|
|
|
|
|
# target: i686-unknown-linux-gnu
|
|
|
|
|
#
|
|
|
|
|
# # This represents the minimum Rust version supported by
|
|
|
|
|
# # Tokio. Updating this should be done in a dedicated PR and
|
|
|
|
|
# # cannot be greater than two 0.x releases prior to the
|
|
|
|
|
# # current stable.
|
|
|
|
|
# #
|
|
|
|
|
# # Tests are not run as tests may require newer versions of
|
|
|
|
|
# # rust.
|
|
|
|
|
# - template: ci/azure-check-minrust.yml
|
|
|
|
|
# parameters:
|
|
|
|
|
# name: minrust
|
|
|
|
|
# rust_version: 1.34.0
|
|
|
|
|
#
|
|
|
|
|
# - template: ci/azure-tsan.yml
|
|
|
|
|
# parameters:
|
|
|
|
|
# name: tsan
|
|
|
|
|
# rust: $(nightly)
|
2019-08-18 14:38:55 -07:00
|
|
|
|
|
|
|
|
- template: ci/azure-deploy-docs.yml
|
|
|
|
|
parameters:
|
|
|
|
|
rust: $(nightly)
|
|
|
|
|
dependsOn:
|
|
|
|
|
- rustfmt
|
|
|
|
|
- clippy
|
|
|
|
|
- test_tokio
|
|
|
|
|
- test_sub_cross
|
|
|
|
|
- test_linux
|
|
|
|
|
- test_features
|
|
|
|
|
# - test_nightly
|
|
|
|
|
# - cross_32bit_linux
|
|
|
|
|
# - minrust
|
|
|
|
|
# - tsan
|