Skip to content

Commit

Permalink
🔧azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Dubrov committed Aug 17, 2019
1 parent 2ad10a4 commit 4685afa
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions azure-pipelines.yaml
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

0 comments on commit 4685afa

Please # to comment.