]> git.proxmox.com Git - cargo.git/blob - azure-pipelines.yml
Remove redundant check for Kind::Target.
[cargo.git] / azure-pipelines.yml
1 trigger:
2 branches:
3 include:
4 - '*'
5 exclude:
6 - master
7 pr:
8 - master
9
10 jobs:
11 - job: Linux
12 pool:
13 vmImage: ubuntu-16.04
14 steps:
15 - template: ci/azure-test-all.yml
16 strategy:
17 matrix:
18 stable:
19 TOOLCHAIN: stable
20 beta:
21 TOOLCHAIN: beta
22 nightly:
23 TOOLCHAIN: nightly
24 variables:
25 OTHER_TARGET: i686-unknown-linux-gnu
26
27 - job: macOS
28 pool:
29 vmImage: macos-10.13
30 steps:
31 - template: ci/azure-test-all.yml
32 variables:
33 TOOLCHAIN: stable
34 OTHER_TARGET: i686-apple-darwin
35
36 - job: Windows
37 pool:
38 vmImage: windows-2019
39 steps:
40 - template: ci/azure-test-all.yml
41 strategy:
42 matrix:
43 x86_64-msvc:
44 TOOLCHAIN: stable-x86_64-pc-windows-msvc
45 OTHER_TARGET: i686-pc-windows-msvc
46 - job: rustfmt
47 pool:
48 vmImage: ubuntu-16.04
49 steps:
50 - template: ci/azure-install-rust.yml
51 - bash: rustup component add rustfmt
52 displayName: "Install rustfmt"
53 - bash: cargo fmt --all -- --check
54 displayName: "Check rustfmt (cargo)"
55 - bash: cd crates/cargo-test-macro && cargo fmt --all -- --check
56 displayName: "Check rustfmt (cargo-test-macro)"
57 - bash: cd crates/crates-io && cargo fmt --all -- --check
58 displayName: "Check rustfmt (crates-io)"
59 - bash: cd crates/resolver-tests && cargo fmt --all -- --check
60 displayName: "Check rustfmt (resolver-tests)"
61 variables:
62 TOOLCHAIN: stable
63
64 - job: resolver
65 pool:
66 vmImage: ubuntu-16.04
67 steps:
68 - template: ci/azure-install-rust.yml
69 - bash: cargo test --manifest-path crates/resolver-tests/Cargo.toml
70 displayName: "Resolver tests"
71 variables:
72 TOOLCHAIN: stable
73
74 - job: docs
75 pool:
76 vmImage: ubuntu-16.04
77 steps:
78 - template: ci/azure-install-rust.yml
79 - bash: |
80 set -e
81 mkdir mdbook
82 curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.1/mdbook-v0.3.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
83 echo "##vso[task.prependpath]`pwd`/mdbook"
84 displayName: "Install mdbook"
85 - bash: cargo doc --no-deps
86 displayName: "Build documentation"
87 - bash: cd src/doc && mdbook build --dest-dir ../../target/doc
88 displayName: "Build mdbook documentation"
89 variables:
90 TOOLCHAIN: stable
91