2020-02-02 19:11:41 +00:00
|
|
|
name: $(Build.BuildId)
|
|
|
|
trigger:
|
|
|
|
# This is where pull requests from "bors r+" are built.
|
|
|
|
- staging
|
|
|
|
# This is where pull requests from "bors try" are built.
|
|
|
|
- trying
|
|
|
|
# Always build master
|
|
|
|
- master
|
|
|
|
pr:
|
|
|
|
# Enable building pull requests.
|
|
|
|
- master
|
|
|
|
stages:
|
|
|
|
- stage: Testing
|
|
|
|
jobs:
|
|
|
|
- job:
|
|
|
|
variables:
|
2020-03-13 18:26:45 +00:00
|
|
|
rust: 1.40.0
|
2020-02-02 19:11:41 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-04-10 10:31:46 +00:00
|
|
|
MSVC 32-bit:
|
2020-02-02 19:11:41 +00:00
|
|
|
image: vs2017-win2016
|
|
|
|
target: i686-pc-windows-msvc
|
2020-04-10 10:31:46 +00:00
|
|
|
MSVC 64-bit:
|
2020-02-02 19:11:41 +00:00
|
|
|
image: vs2017-win2016
|
|
|
|
target: x86_64-pc-windows-msvc
|
2020-04-10 10:31:46 +00:00
|
|
|
MinGW 32-bit:
|
2020-02-02 19:11:41 +00:00
|
|
|
image: vs2017-win2016
|
|
|
|
target: i686-pc-windows-gnu
|
2020-04-10 10:31:46 +00:00
|
|
|
MinGW 64-bit:
|
2020-02-02 19:11:41 +00:00
|
|
|
image: vs2017-win2016
|
|
|
|
target: x86_64-pc-windows-gnu
|
|
|
|
pool:
|
|
|
|
vmImage: $(image)
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
fetchDepth: 1
|
|
|
|
path: clap
|
|
|
|
displayName: Checkout repository
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: cargo | "$(rust)" | $(target) | Cargo.toml
|
|
|
|
path: C:\Rust\.cargo
|
2020-04-10 10:31:46 +00:00
|
|
|
displayName: Cache cargo
|
2020-02-02 19:11:41 +00:00
|
|
|
- script: rustup default $(rust)-$(target)
|
|
|
|
displayName: Install rust
|
2020-04-12 01:36:20 +00:00
|
|
|
- script: cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
|
|
|
displayName: Test with almost no features
|
2020-02-03 10:29:57 +00:00
|
|
|
- script: cargo test --features "yaml unstable"
|
2020-02-02 19:11:41 +00:00
|
|
|
displayName: Test with most features
|
|
|
|
- script: |
|
|
|
|
rmdir /Q /S C:\Rust\.cargo\registry\src
|
2020-04-10 10:31:46 +00:00
|
|
|
displayName: Cleanup cache
|
2020-02-02 19:11:41 +00:00
|
|
|
continueOnError: true
|