]> git.proxmox.com Git - cargo.git/blob - azure-pipelines.yml
Auto merge of #8081 - t-nelis:index-commands-section, r=ehuss
[cargo.git] / azure-pipelines.yml
1 trigger:
2 branches:
3 include:
4 - '*'
5 exclude:
6 - master
7
8 jobs:
9 - job: Linux
10 pool:
11 vmImage: ubuntu-16.04
12 steps:
13 - template: ci/azure-test-all.yml
14 strategy:
15 matrix:
16 stable:
17 TOOLCHAIN: stable
18 beta:
19 TOOLCHAIN: beta
20 nightly:
21 TOOLCHAIN: nightly
22 variables:
23 OTHER_TARGET: i686-unknown-linux-gnu
24
25 - job: macOS
26 pool:
27 vmImage: macos-10.15
28 steps:
29 - template: ci/azure-test-all.yml
30 variables:
31 TOOLCHAIN: stable
32 OTHER_TARGET: x86_64-apple-ios
33
34 - job: Windows
35 pool:
36 vmImage: windows-2019
37 steps:
38 - template: ci/azure-test-all.yml
39 strategy:
40 matrix:
41 x86_64-msvc:
42 TOOLCHAIN: stable-x86_64-pc-windows-msvc
43 OTHER_TARGET: i686-pc-windows-msvc
44
45 - job: rustfmt
46 pool:
47 vmImage: ubuntu-16.04
48 steps:
49 - template: ci/azure-install-rust.yml
50 - bash: rustup component add rustfmt
51 displayName: "Install rustfmt"
52 - bash: cargo fmt --all -- --check
53 displayName: "Check rustfmt (cargo)"
54 - bash: cd crates/cargo-test-macro && cargo fmt --all -- --check
55 displayName: "Check rustfmt (cargo-test-macro)"
56 - bash: cd crates/cargo-test-support && cargo fmt --all -- --check
57 displayName: "Check rustfmt (cargo-test-support)"
58 - bash: cd crates/crates-io && cargo fmt --all -- --check
59 displayName: "Check rustfmt (crates-io)"
60 - bash: cd crates/resolver-tests && cargo fmt --all -- --check
61 displayName: "Check rustfmt (resolver-tests)"
62 - bash: cd crates/cargo-platform && cargo fmt --all -- --check
63 displayName: "Check rustfmt (cargo-platform)"
64 variables:
65 TOOLCHAIN: stable
66
67 - job: resolver
68 pool:
69 vmImage: ubuntu-16.04
70 steps:
71 - template: ci/azure-install-rust.yml
72 - bash: cargo test --manifest-path crates/resolver-tests/Cargo.toml
73 displayName: "Resolver tests"
74 variables:
75 TOOLCHAIN: stable
76
77 - job: build_std
78 pool:
79 vmImage: ubuntu-16.04
80 steps:
81 - template: ci/azure-install-rust.yml
82 - bash: rustup component add rust-src
83 displayName: "Install rust-src"
84 - bash: cargo build
85 - bash: cargo test --test build-std
86 displayName: "tests"
87 variables:
88 TOOLCHAIN: nightly
89 CARGO_RUN_BUILD_STD_TESTS: 1
90
91 - job: docs
92 pool:
93 vmImage: ubuntu-16.04
94 variables:
95 TOOLCHAIN: nightly
96 steps:
97 - template: ci/azure-install-rust.yml
98 - bash: |
99 set -e
100 mkdir mdbook
101 curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.3.7/mdbook-v0.3.7-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
102 echo "##vso[task.prependpath]`pwd`/mdbook"
103 displayName: "Install mdbook"
104 - bash: cargo doc --no-deps
105 displayName: "Build documentation"
106 - bash: cd src/doc && mdbook build --dest-dir ../../target/doc
107 displayName: "Build mdbook documentation"
108 - bash: |
109 set -e
110 rustup component add rust-docs
111 cd src/doc
112 curl -sSLo linkcheck.sh \
113 https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
114 sh linkcheck.sh --all cargo
115 displayName: "Check for broken links"