forked from rayon-rs/rayon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (85 loc) · 2.23 KB
/
.travis.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
language: rust
# Using 16MB stacks for deep test/debug recursion
env:
global:
- RUST_MIN_STACK=16777216
matrix:
fast_finish: true
include:
# NB: To help with CI delays, each `pull_request` is only tested on Linux,
# with 1.28 for compatibility and stable+rayon_unstable for broad test
# coverage. The bors bot counts as a `push` type, which will run it all.
- rust: 1.28.0
os: linux
#if: everything!
script: cargo build
- rust: stable
os: linux
if: NOT type = pull_request
- rust: stable
os: linux
env: RUSTFLAGS='--cfg rayon_unstable'
#if: everything!
- rust: beta
os: linux
if: NOT type = pull_request
- rust: beta
os: linux
env: RUSTFLAGS='--cfg rayon_unstable'
if: NOT type = pull_request
- rust: nightly
os: linux
if: NOT type = pull_request
- rust: nightly
os: linux
env: RUSTFLAGS='--cfg rayon_unstable'
if: NOT type = pull_request
- rust: stable
os: osx
if: NOT type = pull_request
- rust: stable
os: osx
env: RUSTFLAGS='--cfg rayon_unstable'
if: NOT type = pull_request
- rust: nightly
os: osx
if: NOT type = pull_request
- rust: nightly
os: osx
env: RUSTFLAGS='--cfg rayon_unstable'
if: NOT type = pull_request
# wasm won't actually work without threading, but it builds
- rust: nightly
os: linux
env: TARGET=wasm32-unknown-unknown
script:
- rustup target add $TARGET
- cargo build --target $TARGET
if: NOT type = pull_request
# rayon-demo has huge dependencies, so limit its testing.
# build on stable, test on nightly (because of #[bench])
- rust: stable
os: linux
env: DEMO=1
script: cargo build -p rayon-demo
if: NOT type = pull_request
- rust: nightly
os: linux
env: DEMO=1
script: cargo test -p rayon-demo
if: NOT type = pull_request
script:
- cargo build
- cargo test -p rayon
- cargo test -p rayon-core
- ./ci/highlander.sh
- |
if [ -n "$RUSTFLAGS" ]; then
cargo build -p rayon-futures &&
cargo test -p rayon-futures
fi
branches:
only:
- master
- staging
- trying