Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First draft of Azure Pipelines CI config #191

Merged
merged 9 commits into from
Jul 22, 2019
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
stages:
- stage: check
displayName: Compilation check
dependsOn: []
jobs:
- template: azure/cargo-check.yml@templates
parameters:
name: cargo_check
benches: true
# This represents the minimum Rust version supported.
# Tests are not run as tests may require newer versions of rust.
- stage: msrv
displayName: "Minimum supported Rust version"
dependsOn: []
jobs:
- template: azure/cargo-check.yml@templates
parameters:
rust: 1.34.0
- stage: custom
jonhoo marked this conversation as resolved.
Show resolved Hide resolved
displayName: "Special tests"
dependsOn: check
jobs:
- job: custom_stable
pool:
vmImage: ubuntu-16.04
displayName: "Stable custom tests"
steps:
- template: azure/install-rust.yml@templates
parameters:
rust: stable
- bash: cd tracing/test-log-support && cargo test
displayName: "Test log support"
- bash: cd tracing/test_static_max_level_features && cargo test
displayName: "Test static max level features"
- job: custom_nightly
pool:
vmImage: ubuntu-16.04
displayName: "Nightly custom tests"
continueOnError: true
steps:
- template: azure/install-rust.yml@templates
parameters:
rust: nightly
- script: cargo test --features=doctest-readme --all
displayName: "Test README as doctest"
- bash: cd tracing-futures/test_std_future && cargo test
displayName: "Test std::future support for tracing-futures"
- stage: style
displayName: Style linting
dependsOn: check
jobs:
- template: azure/rustfmt.yml@templates
parameters:
name: rustfmt
- template: azure/rustfmt.yml@templates
parameters:
name: rustfmt_beta
rust: beta
allow_fail: true
- template: azure/cargo-check.yml@templates
parameters:
name: warning_free
err_on_warn: true
allow_fail: true
- stage: test
displayName: Test suite
dependsOn: check
jobs:
- template: azure/tests.yml@templates
- stage: coverage
displayName: Code coverage
dependsOn: test
jobs:
- template: azure/coverage.yml@templates
parameters:
codecov_token: $(CODECOV_TOKEN_SECRET)
jonhoo marked this conversation as resolved.
Show resolved Hide resolved

resources:
repositories:
- repository: templates
type: github
name: crate-ci/azure-pipelines
jonhoo marked this conversation as resolved.
Show resolved Hide resolved
endpoint: tokio-rs
jonhoo marked this conversation as resolved.
Show resolved Hide resolved