Skip to content

Commit 1b58378

Browse files
committed
Disable serde1 feature in tests of rand
This feature is not applicable to rand, but is causing issues due to a bug in average.
1 parent b1eea36 commit 1b58378

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sudo: false
4040
# - test no_std support, but only the unit tests:
4141
# `cargo test --lib --no-default-features`
4242
# - run unit tests and doctests with all features which are available on stable:
43-
# `cargo test --features=serde1,log`
43+
# `cargo test --features=log`
4444
# - test examples:
4545
# `cargo test --examples`
4646
# Additional tests on nightly:
@@ -64,7 +64,7 @@ matrix:
6464
# Differs from standard script: rand_pcg features
6565
- cargo test --lib --no-default-features
6666
# TODO: add simd_support feature:
67-
- cargo test --features=serde1,log
67+
- cargo test --features=log
6868
- cargo test --examples
6969
- cargo test --manifest-path rand_core/Cargo.toml
7070
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features
@@ -86,7 +86,7 @@ matrix:
8686
# Differs from standard script: includes aarch64-apple-ios cross-build
8787
- cargo test --lib --no-default-features
8888
# TODO: add simd_support feature:
89-
- cargo test --features=serde1,log
89+
- cargo test --features=log
9090
- cargo test --examples
9191
- cargo test --manifest-path rand_core/Cargo.toml
9292
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features
@@ -113,7 +113,8 @@ matrix:
113113
script:
114114
# Differs from standard script: alloc feature, all features, doc build
115115
- cargo test --lib --no-default-features --features=alloc
116-
- cargo test --all-features
116+
# Excludes serde1:
117+
- cargo test --features=nightly,simd_support,log
117118
- cargo test --benches --features=nightly
118119
- cargo test --examples
119120
- cargo test --manifest-path rand_core/Cargo.toml
@@ -207,7 +208,7 @@ before_install:
207208
script:
208209
- cargo test --lib --no-default-features
209210
# TODO: add simd_support feature:
210-
- cargo test --features=serde1,log
211+
- cargo test --features=log
211212
- cargo test --examples
212213
- cargo test --manifest-path rand_core/Cargo.toml
213214
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build: false
3434
test_script:
3535
- cargo test --lib --no-default-features --features alloc
3636
# TODO: use --all-features once simd_support is sufficiently stable:
37-
- cargo test --features=serde1,log
37+
- cargo test --features=log
3838
- cargo test --benches --features=nightly
3939
- cargo test --examples
4040
- cargo test --manifest-path rand_core/Cargo.toml

utils/ci/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
main() {
66
cross test --target $TARGET --lib --no-default-features
77
# TODO: add simd_support feature:
8-
cross test --target $TARGET --features=serde1,log
8+
cross test --target $TARGET --features=log
99
cross test --target $TARGET --examples
1010
cross test --target $TARGET --manifest-path rand_core/Cargo.toml
1111
cross test --target $TARGET --manifest-path rand_core/Cargo.toml --no-default-features

0 commit comments

Comments
 (0)