@@ -51,51 +51,51 @@ sudo: false
51
51
# - run benchmarks as tests:
52
52
# `cargo test --benches --features=nightly`
53
53
# Tests on subcrates:
54
- # `cargo test --package rand_core`
55
- # `cargo test --package rand_core --features=alloc` (requires nightly)
56
- # `cargo test --package rand_core --no-default-features`
57
- # `cargo test --package rand_isaac --features=serde1`
58
- # `cargo test --package rand_xorshift --features=serde1`
54
+ # - select crates via --manifest-path (more reliable than --package)
55
+ # - test appropriate feature matrix
56
+ #
57
+ # TODO: SIMD support on stable releases
58
+ # NOTE: SIMD support is unreliable on nightly; we track the latest release
59
59
matrix :
60
60
include :
61
61
- rust : 1.22.0
62
62
env : DESCRIPTION="pinned stable Rust release"
63
- install :
64
63
script :
64
+ # Differs from standard script: rand_pcg features
65
65
- cargo test --lib --no-default-features
66
+ # TODO: add simd_support feature:
66
67
- cargo test --features=serde1,log
67
68
- cargo test --examples
68
- - cargo test --package rand_core
69
- - cargo test --package rand_core --no-default-features
70
- - cargo test --package rand_isaac --features=serde1
71
- # - cargo test --package rand_xorshift --features=serde1
69
+ - cargo test --manifest-path rand_core/Cargo.toml
70
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features
71
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
72
+ # TODO: cannot test rand_pcg due to explicit dependency on i128
73
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
74
+ - cargo test --manifest-path rand_chacha/Cargo.toml
75
+ - cargo test --manifest-path rand_hc/Cargo.toml
72
76
73
77
- rust : stable
74
78
env : DESCRIPTION="stable Rust release, macOS, iOS (cross-compile only)"
75
79
os : osx
76
80
install :
77
81
- rustup target add aarch64-apple-ios
78
82
script :
83
+ # Differs from standard script: includes aarch64-apple-ios cross-build
79
84
- cargo test --lib --no-default-features
80
- - cargo test --features=serde1,log,i128_support
85
+ # TODO: add simd_support feature:
86
+ - cargo test --features=serde1,log
81
87
- cargo test --examples
82
- - cargo test --package rand_core
83
- - cargo test --package rand_core --no-default-features
84
- - cargo test --package rand_isaac --features=serde1
85
- - cargo test --package rand_xorshift --features=serde1
88
+ - cargo test --manifest-path rand_core/Cargo.toml
89
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features
90
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
91
+ - cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
92
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
93
+ - cargo test --manifest-path rand_chacha/Cargo.toml
94
+ - cargo test --manifest-path rand_hc/Cargo.toml
86
95
- cargo build --target=aarch64-apple-ios
87
96
88
97
- rust : beta
89
98
env : DESCRIPTION="beta Rust release"
90
- install :
91
- script :
92
- - cargo test --lib --no-default-features
93
- - cargo test --features=serde1,log,i128_support
94
- - cargo test --examples
95
- - cargo test --package rand_core
96
- - cargo test --package rand_core --no-default-features
97
- - cargo test --package rand_isaac --features=serde1
98
- - cargo test --package rand_xorshift --features=serde1
99
99
100
100
- rust : nightly
101
101
env : DESCRIPTION="nightly features, benchmarks, documentation"
@@ -105,14 +105,18 @@ matrix:
105
105
before_script :
106
106
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
107
107
script :
108
+ # Differs from standard script: alloc feature, all features, doc build
108
109
- cargo test --lib --no-default-features --features=alloc
109
110
- cargo test --all-features
110
111
- cargo test --benches --features=nightly
111
112
- cargo test --examples
112
- - cargo test --package rand_core
113
- - cargo test --package rand_core --no-default-features --features=alloc
114
- - cargo test --package rand_isaac --features=serde1
115
- # - cargo test --package rand_xorshift --features=serde1
113
+ - cargo test --manifest-path rand_core/Cargo.toml
114
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc
115
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
116
+ - cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
117
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
118
+ - cargo test --manifest-path rand_chacha/Cargo.toml
119
+ - cargo test --manifest-path rand_hc/Cargo.toml
116
120
# remove cached documentation, otherwise files from previous PRs can get included
117
121
- rm -rf target/doc
118
122
- cargo doc --no-deps --all --all-features
@@ -164,22 +168,38 @@ matrix:
164
168
dist : trusty
165
169
services : docker
166
170
env : DESCRIPTION="Linux (MIPS, big-endian)" TARGET=mips-unknown-linux-gnu
171
+ install :
172
+ - sh utils/ci/install.sh
173
+ - source ~/.cargo/env || true
174
+ script :
175
+ - bash utils/ci/script.sh
167
176
- rust : stable
168
177
sudo : required
169
178
dist : trusty
170
179
services : docker
171
180
env : DESCRIPTION="Android (ARMv7)" TARGET=armv7-linux-androideabi
181
+ install :
182
+ - sh utils/ci/install.sh
183
+ - source ~/.cargo/env || true
184
+ script :
185
+ - bash utils/ci/script.sh
172
186
173
187
before_install :
174
188
- set -e
175
189
- rustup self update
176
190
177
- # Used by all Trust targets; others must override:
178
- install :
179
- - sh utils/ci/install.sh
180
- - source ~/.cargo/env || true
181
191
script :
182
- - bash utils/ci/script.sh
192
+ - cargo test --lib --no-default-features
193
+ # TODO: add simd_support feature:
194
+ - cargo test --features=serde1,log
195
+ - cargo test --examples
196
+ - cargo test --manifest-path rand_core/Cargo.toml
197
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features
198
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
199
+ - cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
200
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
201
+ - cargo test --manifest-path rand_chacha/Cargo.toml
202
+ - cargo test --manifest-path rand_hc/Cargo.toml
183
203
184
204
after_script : set +e
185
205
0 commit comments