-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan Dubrov
committed
Aug 17, 2019
1 parent
2ad10a4
commit 4685afa
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
trigger: | ||
branches: | ||
include: ['*'] | ||
tags: | ||
include: ['*'] | ||
|
||
resources: | ||
repositories: | ||
- repository: templates | ||
type: github | ||
name: xoac/rust-azure-pipelines | ||
ref: refs/tags/v0.0.3 | ||
endpoint: PipelinesTemplates | ||
|
||
jobs: | ||
# Check formatting | ||
- template: ci/rustfmt.yml@templates | ||
parameters: | ||
name: rustfmt | ||
displayName: Check formatting | ||
|
||
# Cargo check | ||
- template: ci/cargo-check.yml@templates | ||
parameters: | ||
name: cargo_check | ||
displayName: Cargo check | ||
|
||
# This represents the minimum Rust version supported. | ||
# Tests are not run as tests may require newer versions of rust. | ||
- template: ci/cargo-check.yml@templates | ||
parameters: | ||
name: minrust | ||
rust_version: 1.31.0 # The 2018 edition | ||
displayName: Check rust min ver | ||
|
||
################ | ||
# Test stage # | ||
############### | ||
|
||
# Test stable | ||
- template: ci/test.yml@templates | ||
parameters: | ||
dependsOn: | ||
- cargo_check | ||
name: cargo_test_stable | ||
displayName: Cargo test | ||
cross: true # Test on Windows and macOS | ||
|
||
# Test nightly | ||
- template: ci/test.yml@templates | ||
parameters: | ||
name: cargo_test_nightly | ||
displayName: Cargo test | ||
rust_version: nightly |