This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathazure-pipelines.yml
66 lines (58 loc) · 1.55 KB
/
azure-pipelines.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
# https://aka.ms/yaml
trigger:
- master
strategy:
matrix:
# Windows require `--release` flag to build neon
# More info: https://github.com/neon-bindings/neon/issues/463
windows-stable:
imageName: 'windows-latest'
rustup_toolchain: stable
build_args: --release
windows-beta:
imageName: 'windows-latest'
rustup_toolchain: beta
build_args: --release
windows-nightly:
imageName: 'windows-latest'
rustup_toolchain: nightly
build_args: --release
mac-stable:
imageName: 'macos-latest'
rustup_toolchain: stable
mac-beta:
imageName: 'macos-latest'
rustup_toolchain: beta
mac-nightly:
imageName: 'macos-latest'
rustup_toolchain: nightly
linux-stable:
imageName: 'ubuntu-latest'
rustup_toolchain: stable
linux-beta:
imageName: 'ubuntu-latest'
rustup_toolchain: beta
linux-nightly:
imageName: 'ubuntu-latest'
rustup_toolchain: nightly
pool:
vmImage: $(imageName)
steps:
- template: pipelines/install-rust.yml
parameters:
rustup_toolchain: $(rustup_toolchain)
- script: |
rustc --version --verbose
cargo build --verbose --all $(build_args)
cargo test --verbose --all --no-run $(build_args)
displayName: build
- script: |
rustc --version --verbose
cargo clippy --all-targets --all-features --all $(build_args)
displayName: clippy
- script: |
cargo test --verbose --all $(build_args)
displayName: test
- script: |
cargo doc --no-deps --verbose --all $(build_args)
displayName: docs