2019-10-08 01:17:27 +09:00
|
|
|
trigger: ["master"]
|
|
|
|
|
pr: ["master"]
|
2019-03-01 09:12:21 -08:00
|
|
|
|
2019-05-14 10:27:36 -07:00
|
|
|
variables:
|
2019-08-10 00:07:57 +09:00
|
|
|
RUSTFLAGS: -Dwarnings
|
2020-05-30 20:18:01 +02:00
|
|
|
nightly: nightly-2020-05-29
|
2019-05-14 10:27:36 -07:00
|
|
|
|
2019-03-01 09:12:21 -08:00
|
|
|
jobs:
|
|
|
|
|
# Test top level crate
|
2019-06-25 16:51:49 -04:00
|
|
|
- template: ci/azure-test-stable.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_tokio
|
2019-11-08 00:32:04 +09:00
|
|
|
rust: stable
|
2019-06-25 16:51:49 -04:00
|
|
|
displayName: Test tokio
|
|
|
|
|
cross: true
|
|
|
|
|
crates:
|
2019-11-01 13:09:32 +09:00
|
|
|
- tokio
|
|
|
|
|
- tests-integration
|
2019-03-01 09:12:21 -08:00
|
|
|
|
2019-11-22 11:55:57 -08:00
|
|
|
# Test sub crates
|
2019-03-01 09:12:21 -08:00
|
|
|
- template: ci/azure-test-stable.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_linux
|
2019-03-19 14:58:59 -07:00
|
|
|
displayName: Test sub crates -
|
2019-11-08 00:32:04 +09:00
|
|
|
rust: stable
|
2019-03-01 09:12:21 -08:00
|
|
|
crates:
|
2019-11-01 13:09:32 +09:00
|
|
|
- tokio-macros
|
|
|
|
|
- tokio-test
|
|
|
|
|
- tokio-util
|
|
|
|
|
- examples
|
2019-08-15 09:52:25 -07:00
|
|
|
|
2020-01-21 10:46:32 -08:00
|
|
|
# Run integration tests
|
|
|
|
|
- template: ci/azure-test-integration.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_integration
|
|
|
|
|
displayName: Integration tests
|
|
|
|
|
rust: stable
|
|
|
|
|
|
2019-11-22 14:38:49 -08:00
|
|
|
# Run tests from `tests-build`. This requires a different process
|
|
|
|
|
- template: ci/azure-test-build.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: test_build
|
|
|
|
|
displayName: Test build permutations
|
|
|
|
|
rust: stable
|
|
|
|
|
|
2020-03-05 10:31:37 -08:00
|
|
|
# Run miri tests
|
|
|
|
|
- template: ci/azure-miri.yml
|
2019-10-19 11:09:40 -07:00
|
|
|
parameters:
|
2020-03-05 10:31:37 -08:00
|
|
|
name: miri
|
2020-06-12 18:37:06 +09:00
|
|
|
rust: $(nightly)
|
2019-10-19 11:09:40 -07:00
|
|
|
|
2019-09-14 02:18:32 +09:00
|
|
|
# Try cross compiling
|
|
|
|
|
- template: ci/azure-cross-compile.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: cross
|
2019-11-08 00:32:04 +09:00
|
|
|
rust: stable
|
2019-09-14 02:18:32 +09:00
|
|
|
|
2019-11-23 07:13:18 +09:00
|
|
|
# Check each feature works properly
|
|
|
|
|
- template: ci/azure-check-features.yml
|
|
|
|
|
parameters:
|
|
|
|
|
rust: $(nightly)
|
|
|
|
|
name: check_features
|
|
|
|
|
|
2019-11-08 13:26:08 +09:00
|
|
|
# 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.
|
2019-06-24 12:34:30 -07:00
|
|
|
#
|
2019-11-08 13:26:08 +09:00
|
|
|
# Tests are not run as tests may require newer versions of
|
|
|
|
|
# rust.
|
|
|
|
|
- template: ci/azure-check-minrust.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: minrust
|
2019-11-23 07:13:18 +09:00
|
|
|
rust: 1.39.0
|
2019-11-08 13:26:08 +09:00
|
|
|
|
2019-11-22 11:55:57 -08:00
|
|
|
# Check formatting
|
|
|
|
|
- template: ci/azure-rustfmt.yml
|
|
|
|
|
parameters:
|
|
|
|
|
rust: stable
|
|
|
|
|
name: rustfmt
|
|
|
|
|
|
|
|
|
|
# Apply clippy lints to all crates
|
|
|
|
|
- template: ci/azure-clippy.yml
|
|
|
|
|
parameters:
|
|
|
|
|
rust: stable
|
|
|
|
|
name: clippy
|
|
|
|
|
|
|
|
|
|
# Check doc generation
|
|
|
|
|
- template: ci/azure-check-docs.yml
|
|
|
|
|
parameters:
|
2019-11-23 07:13:18 +09:00
|
|
|
rust: $(nightly)
|
2019-11-22 11:55:57 -08:00
|
|
|
name: docs
|
|
|
|
|
|
2019-06-24 12:34:30 -07:00
|
|
|
# - template: ci/azure-tsan.yml
|
|
|
|
|
# parameters:
|
|
|
|
|
# name: tsan
|
2019-11-08 00:32:04 +09:00
|
|
|
# rust: stable
|
2019-08-18 14:38:55 -07:00
|
|
|
|
2020-03-05 10:31:37 -08:00
|
|
|
# Run loom tests
|
|
|
|
|
- template: ci/azure-loom.yml
|
|
|
|
|
parameters:
|
|
|
|
|
name: loom
|
|
|
|
|
rust: stable
|
|
|
|
|
|
2019-08-18 14:38:55 -07:00
|
|
|
- template: ci/azure-deploy-docs.yml
|
|
|
|
|
parameters:
|
2019-11-08 00:32:04 +09:00
|
|
|
rust: stable
|
2019-08-18 14:38:55 -07:00
|
|
|
dependsOn:
|
|
|
|
|
- rustfmt
|
2020-03-05 10:31:37 -08:00
|
|
|
- docs
|
2019-08-18 14:38:55 -07:00
|
|
|
- clippy
|
|
|
|
|
- test_tokio
|
|
|
|
|
- test_linux
|
2020-03-05 10:31:37 -08:00
|
|
|
- test_integration
|
2019-11-22 14:38:49 -08:00
|
|
|
- test_build
|
2019-10-25 12:50:15 -07:00
|
|
|
- loom
|
2020-03-05 10:31:37 -08:00
|
|
|
- miri
|
2019-09-14 02:18:32 +09:00
|
|
|
- cross
|
2019-11-22 11:55:57 -08:00
|
|
|
- minrust
|
2019-11-23 07:13:18 +09:00
|
|
|
- check_features
|
2019-08-18 14:38:55 -07:00
|
|
|
# - tsan
|