forked from clap-rs/clap
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.azure-pipelines.yml
More file actions
53 lines (53 loc) · 1.62 KB
/
Copy path.azure-pipelines.yml
File metadata and controls
53 lines (53 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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:
rust: 1.40.0
strategy:
matrix:
MSVC 32-bit:
image: vs2017-win2016
target: i686-pc-windows-msvc
MSVC 64-bit:
image: vs2017-win2016
target: x86_64-pc-windows-msvc
MinGW 32-bit:
image: vs2017-win2016
target: i686-pc-windows-gnu
MinGW 64-bit:
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
displayName: Cache cargo
- script: rustup default $(rust)-$(target)
displayName: Install rust
- script: cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
displayName: Test with almost no features
- script: cargo test --features "yaml unstable"
displayName: Test with most features
- script: |
rmdir /Q /S C:\Rust\.cargo\registry\src
displayName: Cleanup cache
continueOnError: true