forked from getsentry/sentry-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
99 lines (92 loc) · 2.34 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
trigger:
- master
- release/*
pr: none
jobs:
# Build: Linux
- job: sentry_cli_linux
displayName: "Build: Linux"
pool:
vmImage: "ubuntu-16.04"
strategy:
matrix:
i686:
target: i686-unknown-linux-musl
docker_tag: i686-musl
x86_64:
target: x86_64-unknown-linux-musl
docker_tag: x86_64-musl
steps:
- template: azure-pipelines/prescript-common.yml
- bash: |
set -eux
bash scripts/build-in-docker.sh
env:
TARGET: $(target)
DOCKER_TAG: $(docker_tag)
# Build: MacOS
- job: sentry_cli_macos
displayName: "Build: MacOS x86_64"
pool:
vmImage: "macos-10.13"
steps:
- template: azure-pipelines/prescript-common.yml
- template: azure-pipelines/install-rust.yml
- bash: |
set -eux
cargo build --release --locked
env:
TARGET: x86_64-apple-darwin
# Build: Windows
- job: sentry_cli_windows
displayName: "Build: Windows"
pool:
vmImage: "vs2017-win2016"
strategy:
matrix:
i686:
target_host: i686-pc-windows-msvc
x86_64:
target_host: x86_64-pc-windows-msvc
steps:
- template: azure-pipelines/prescript-common.yml
- template: azure-pipelines/install-rust.yml
parameters:
target_host: $(target_host)
- bash: |
set -eux
export RUSTFLAGS=-Ctarget-feature=+crt-static
cargo build --release --locked
env:
arch: x86_64
# Checks
- job: check_format
displayName: "Check: format"
pool:
vmImage: "macos-10.13"
steps:
- template: azure-pipelines/prescript-common.yml
- template: azure-pipelines/install-rust.yml
- bash: |
set -eux
make format-check
- job: check_lint
displayName: "Check: lint"
pool:
vmImage: "macos-10.13"
steps:
- template: azure-pipelines/prescript-common.yml
- template: azure-pipelines/install-rust.yml
- bash: |
set -eux
make lint
- job: check_test_rust
displayName: "Test: Rust"
pool:
vmImage: "macos-10.13"
steps:
- template: azure-pipelines/prescript-common.yml
- template: azure-pipelines/install-rust.yml
- bash: |
set -eux
make test