Skip to content

Commit 69ded67

Browse files
authored
Merge pull request rust-lang#160 from rust-lang-nursery/azure-pipelines
Set up CI with Azure Pipelines
2 parents 3559e70 + a831678 commit 69ded67

File tree

112 files changed

+736
-1530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+736
-1530
lines changed

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

Cargo.toml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,30 @@ documentation = "https://docs.rs/libm"
66
keywords = ["libm", "math"]
77
license = "MIT OR Apache-2.0"
88
name = "libm"
9-
repository = "https://github.com/japaric/libm"
9+
repository = "https://github.com/rust-lang-nursery/libm"
1010
version = "0.1.2"
11+
edition = "2018"
1112

1213
[features]
1314
# only used to run our test suite
14-
checked = []
1515
default = ['stable']
1616
stable = []
1717

18+
# Generate tests which are random inputs and the outputs are calculated with
19+
# musl libc.
20+
musl-reference-tests = ['rand']
21+
22+
# Used checked array indexing instead of unchecked array indexing in this
23+
# library.
24+
checked = []
25+
1826
[workspace]
1927
members = [
20-
"cb",
21-
"input-generator",
22-
"musl-generator",
23-
"newlib-generator",
24-
"shared",
28+
"crates/compiler-builtins-smoke-test",
2529
]
2630

2731
[dev-dependencies]
28-
shared = { path = "shared" }
32+
no-panic = "0.1.8"
33+
34+
[build-dependencies]
35+
rand = { version = "0.6.5", optional = true }

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# `libm`
22

3+
[![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)
4+
35
A port of [MUSL]'s libm to Rust.
46

57
[MUSL]: https://www.musl-libc.org/

azure-pipelines.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
trigger:
2+
- master
3+
4+
jobs:
5+
- job: Docker
6+
pool:
7+
vmImage: ubuntu-16.04
8+
steps:
9+
- template: ci/azure-install-rust.yml
10+
- bash: rustup target add $TARGET
11+
displayName: "add cross target"
12+
- bash: rustup target add x86_64-unknown-linux-musl
13+
displayName: "add musl target"
14+
- bash: cargo generate-lockfile && ./ci/run-docker.sh $TARGET
15+
displayName: "run tests"
16+
strategy:
17+
matrix:
18+
aarch64:
19+
TARGET: aarch64-unknown-linux-gnu
20+
arm:
21+
TARGET: arm-unknown-linux-gnueabi
22+
armhf:
23+
TARGET: arm-unknown-linux-gnueabihf
24+
armv7:
25+
TARGET: armv7-unknown-linux-gnueabihf
26+
i686:
27+
TARGET: i686-unknown-linux-gnu
28+
mips:
29+
TARGET: mips-unknown-linux-gnu
30+
mips64:
31+
TARGET: mips64-unknown-linux-gnuabi64
32+
mips64el:
33+
TARGET: mips64el-unknown-linux-gnuabi64
34+
powerpc:
35+
TARGET: powerpc-unknown-linux-gnu
36+
powerpc64:
37+
TARGET: powerpc64-unknown-linux-gnu
38+
powerpc64le:
39+
TARGET: powerpc64le-unknown-linux-gnu
40+
x86_64:
41+
TARGET: x86_64-unknown-linux-gnu
42+
43+
- job: wasm
44+
pool:
45+
vmImage: ubuntu-16.04
46+
steps:
47+
- template: ci/azure-install-rust.yml
48+
- script: rustup target add wasm32-unknown-unknown
49+
displayName: "Install rust wasm target"
50+
- script: cargo build --target wasm32-unknown-unknown
51+
displayName: "Build for wasm"
52+
- script: cargo build --target wasm32-unknown-unknown --no-default-features
53+
displayName: "Build for wasm (no default features)"
54+
variables:
55+
TOOLCHAIN: nightly
56+
57+
- job: rustfmt
58+
pool:
59+
vmImage: ubuntu-16.04
60+
steps:
61+
- template: ci/azure-install-rust.yml
62+
- bash: rustup component add rustfmt
63+
displayName: "install rustfmt"
64+
- bash: cargo fmt --all -- --check
65+
displayName: "check formatting"
66+
67+
- job: compiler_builtins_works
68+
pool:
69+
vmImage: ubuntu-16.04
70+
steps:
71+
- template: ci/azure-install-rust.yml
72+
- bash: cargo build -p cb
73+
displayName: "Check compiler-builtins still probably builds"

0 commit comments

Comments
 (0)