forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-test-all.yml
33 lines (26 loc) · 1.23 KB
/
azure-test-all.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
steps:
- checkout: self
fetchDepth: 1
- template: azure-install-rust.yml
- bash: rustup target add $OTHER_TARGET
displayName: "Install cross-compile target"
- bash: sudo apt update -y && sudo apt install gcc-multilib -y
displayName: "Install gcc-multilib (linux)"
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
# Some tests also rely on rustfmt
- bash: rustup component add rustfmt || echo "rustfmt not available"
displayName: "Install rustfmt (maybe)"
# Deny warnings on CI to avoid warnings getting into the codebase, and note the
# `force-system-lib-on-osx` which is intended to fix compile issues on OSX where
# compiling curl from source on OSX yields linker errors on Azure.
#
# Note that the curl issue is traced back to alexcrichton/curl-rust#279 where it
# looks like the OSX version we're actually running on is such that a symbol is
# emitted that's never worked. For now force the system library to be used to
# fix the link errors.
- bash: cargo test --features 'deny-warnings curl/force-system-lib-on-osx'
displayName: "cargo test"
- bash: cargo test -p cargo-test-support
displayName: "cargo test -p cargo-test-support"
- bash: cargo test -p cargo-platform
displayName: "cargo test -p cargo-platform"