@@ -51,64 +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`
59
- # `cargo test --package rand_chacha`
60
- # `cargo test --package rand_hc128`
54
+ # - select crates via --manifest-path (more reliable than --package)
55
+ # - test appropriate feature matrix
61
56
#
62
57
# TODO: SIMD support on stable releases
63
58
# NOTE: SIMD support is unreliable on nightly; we track the latest release
64
59
matrix :
65
60
include :
66
61
- rust : 1.22.0
67
62
env : DESCRIPTION="pinned stable Rust release"
68
- install :
69
63
script :
64
+ # Differs from standard script: rand_pcg features
70
65
- cargo test --lib --no-default-features
66
+ # TODO: add simd_support feature:
71
67
- cargo test --features=serde1,log
72
68
- cargo test --examples
73
- - cargo test --package rand_core
74
- - cargo test --package rand_core --no-default-features
75
- - cargo test --package rand_isaac --features=serde1
76
- # - cargo test --package rand_xorshift --features=serde1
77
- - cargo test --package rand_chacha
78
- - cargo test --package rand_hc128
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_hc128/Cargo.toml
79
76
80
77
- rust : stable
81
78
env : DESCRIPTION="stable Rust release, macOS, iOS (cross-compile only)"
82
79
os : osx
83
80
install :
84
81
- rustup target add aarch64-apple-ios
85
82
script :
83
+ # Differs from standard script: includes aarch64-apple-ios cross-build
86
84
- cargo test --lib --no-default-features
87
85
# TODO: add simd_support feature:
88
86
- cargo test --features=serde1,log
89
87
- cargo test --examples
90
- - cargo test --package rand_core
91
- - cargo test --package rand_core --no-default-features
92
- - cargo test --package rand_isaac --features=serde1
93
- - cargo test --package rand_xorshift --features=serde1
94
- - cargo test --package rand_chacha
95
- - cargo test --package rand_hc128
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_hc128/Cargo.toml
96
95
- cargo build --target=aarch64-apple-ios
97
96
98
97
- rust : beta
99
98
env : DESCRIPTION="beta Rust release"
100
- install :
101
- script :
102
- - cargo test --lib --no-default-features
103
- # TODO: add simd_support feature:
104
- - cargo test --features=serde1,log
105
- - cargo test --examples
106
- - cargo test --package rand_core
107
- - cargo test --package rand_core --no-default-features
108
- - cargo test --package rand_isaac --features=serde1
109
- - cargo test --package rand_xorshift --features=serde1
110
- - cargo test --package rand_chacha
111
- - cargo test --package rand_hc128
112
99
113
100
- rust : nightly
114
101
env : DESCRIPTION="nightly features, benchmarks, documentation"
@@ -118,16 +105,18 @@ matrix:
118
105
before_script :
119
106
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
120
107
script :
108
+ # Differs from standard script: alloc feature, all features, doc build
121
109
- cargo test --lib --no-default-features --features=alloc
122
110
- cargo test --all-features
123
111
- cargo test --benches --features=nightly
124
112
- cargo test --examples
125
- - cargo test --package rand_core
126
- - cargo test --package rand_core --no-default-features --features=alloc
127
- - cargo test --package rand_isaac --features=serde1
128
- # - cargo test --package rand_xorshift --features=serde1
129
- - cargo test --package rand_chacha
130
- - cargo test --package rand_hc128
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_hc128/Cargo.toml
131
120
# remove cached documentation, otherwise files from previous PRs can get included
132
121
- rm -rf target/doc
133
122
- cargo doc --no-deps --all --all-features
@@ -179,22 +168,38 @@ matrix:
179
168
dist : trusty
180
169
services : docker
181
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
182
176
- rust : stable
183
177
sudo : required
184
178
dist : trusty
185
179
services : docker
186
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
187
186
188
187
before_install :
189
188
- set -e
190
189
- rustup self update
191
190
192
- # Used by all Trust targets; others must override:
193
- install :
194
- - sh utils/ci/install.sh
195
- - source ~/.cargo/env || true
196
191
script :
197
- - 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_hc128/Cargo.toml
198
203
199
204
after_script : set +e
200
205
0 commit comments