@@ -51,64 +51,38 @@ 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
- script :
70
- - cargo test --lib --no-default-features
71
- - cargo test --features=serde1,log
72
- - 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
79
63
80
64
- rust : stable
81
65
env : DESCRIPTION="stable Rust release, macOS, iOS (cross-compile only)"
82
66
os : osx
83
67
install :
84
68
- rustup target add aarch64-apple-ios
85
69
script :
70
+ # Differs from standard script: includes aarch64-apple-ios cross-build
86
71
- cargo test --lib --no-default-features
87
72
# TODO: add simd_support feature:
88
73
- cargo test --features=serde1,log
89
74
- 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
75
+ - cargo test --manifest-path rand_core/Cargo.toml
76
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features
77
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
78
+ - cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
79
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
80
+ - cargo test --manifest-path rand_chacha/Cargo.toml
81
+ - cargo test --manifest-path rand_hc128/Cargo.toml
96
82
- cargo build --target=aarch64-apple-ios
97
83
98
84
- rust : beta
99
85
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
86
113
87
- rust : nightly
114
88
env : DESCRIPTION="nightly features, benchmarks, documentation"
@@ -118,16 +92,18 @@ matrix:
118
92
before_script :
119
93
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
120
94
script :
95
+ # Differs from standard script: alloc feature, all features, doc build
121
96
- cargo test --lib --no-default-features --features=alloc
122
97
- cargo test --all-features
123
98
- cargo test --benches --features=nightly
124
99
- 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
100
+ - cargo test --manifest-path rand_core/Cargo.toml
101
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc
102
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
103
+ - cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
104
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
105
+ - cargo test --manifest-path rand_chacha/Cargo.toml
106
+ - cargo test --manifest-path rand_hc128/Cargo.toml
131
107
# remove cached documentation, otherwise files from previous PRs can get included
132
108
- rm -rf target/doc
133
109
- cargo doc --no-deps --all --all-features
@@ -179,22 +155,38 @@ matrix:
179
155
dist : trusty
180
156
services : docker
181
157
env : DESCRIPTION="Linux (MIPS, big-endian)" TARGET=mips-unknown-linux-gnu
158
+ install :
159
+ - sh utils/ci/install.sh
160
+ - source ~/.cargo/env || true
161
+ script :
162
+ - bash utils/ci/script.sh
182
163
- rust : stable
183
164
sudo : required
184
165
dist : trusty
185
166
services : docker
186
167
env : DESCRIPTION="Android (ARMv7)" TARGET=armv7-linux-androideabi
168
+ install :
169
+ - sh utils/ci/install.sh
170
+ - source ~/.cargo/env || true
171
+ script :
172
+ - bash utils/ci/script.sh
187
173
188
174
before_install :
189
175
- set -e
190
176
- rustup self update
191
177
192
- # Used by all Trust targets; others must override:
193
- install :
194
- - sh utils/ci/install.sh
195
- - source ~/.cargo/env || true
196
178
script :
197
- - bash utils/ci/script.sh
179
+ - cargo test --lib --no-default-features
180
+ # TODO: add simd_support feature:
181
+ - cargo test --features=serde1,log
182
+ - cargo test --examples
183
+ - cargo test --manifest-path rand_core/Cargo.toml
184
+ - cargo test --manifest-path rand_core/Cargo.toml --no-default-features
185
+ - cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
186
+ - cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
187
+ - cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
188
+ - cargo test --manifest-path rand_chacha/Cargo.toml
189
+ - cargo test --manifest-path rand_hc128/Cargo.toml
198
190
199
191
after_script : set +e
200
192
0 commit comments