More azure config fixes

This commit is contained in:
Alex Crichton
2019-05-02 11:47:46 -07:00
parent 344e352e55
commit a831678065
4 changed files with 16 additions and 4 deletions
+2
View File
@@ -1,5 +1,7 @@
# `libm`
[![Build Status](https://dev.azure.com/rust-lang/libm/_apis/build/status/rust-lang-nursery.libm?branchName=master)](https://dev.azure.com/rust-lang/libm/_build/latest?definitionId=7&branchName=master)
A port of [MUSL]'s libm to Rust.
[MUSL]: https://www.musl-libc.org/
+9
View File
@@ -8,7 +8,11 @@ jobs:
steps:
- template: ci/azure-install-rust.yml
- bash: rustup target add $TARGET
displayName: "add cross target"
- bash: rustup target add x86_64-unknown-linux-musl
displayName: "add musl target"
- bash: cargo generate-lockfile && ./ci/run-docker.sh $TARGET
displayName: "run tests"
strategy:
matrix:
aarch64:
@@ -47,6 +51,8 @@ jobs:
displayName: "Build for wasm"
- script: cargo build --target wasm32-unknown-unknown --no-default-features
displayName: "Build for wasm (no default features)"
variables:
TOOLCHAIN: nightly
- job: rustfmt
pool:
@@ -54,7 +60,9 @@ jobs:
steps:
- template: ci/azure-install-rust.yml
- bash: rustup component add rustfmt
displayName: "install rustfmt"
- bash: cargo fmt --all -- --check
displayName: "check formatting"
- job: compiler_builtins_works
pool:
@@ -62,3 +70,4 @@ jobs:
steps:
- template: ci/azure-install-rust.yml
- bash: cargo build -p cb
displayName: "Check compiler-builtins still probably builds"
+2 -1
View File
@@ -22,9 +22,10 @@ run() {
-v `pwd`/target:/target \
-v `pwd`:/checkout:ro \
-v `rustc --print sysroot`:/rust:ro \
--init \
-w /checkout \
$target \
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin ci/run.sh $target"
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin exec ci/run.sh $target"
}
if [ -z "$1" ]; then
+3 -3
View File
@@ -3,10 +3,10 @@
set -ex
TARGET=$1
cargo build --target $TARGET
cargo test --target $TARGET
cargo build --target $TARGET --release
cargo test --target $TARGET --release
cargo test --features 'checked musl-reference-tests' --target $TARGET
# FIXME(#4) overflow checks in non-release currently cause issues
#cargo test --features 'checked musl-reference-tests' --target $TARGET
cargo test --features 'checked musl-reference-tests' --target $TARGET --release