Skip to content

Commit

Permalink
Disable serde1 feature in tests of rand
Browse files Browse the repository at this point in the history
This feature is not applicable to rand, but is causing
issues due to a bug in average.
  • Loading branch information
dhardy committed Aug 1, 2019
1 parent b1eea36 commit 1b58378
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sudo: false
# - test no_std support, but only the unit tests:
# `cargo test --lib --no-default-features`
# - run unit tests and doctests with all features which are available on stable:
# `cargo test --features=serde1,log`
# `cargo test --features=log`
# - test examples:
# `cargo test --examples`
# Additional tests on nightly:
Expand All @@ -64,7 +64,7 @@ matrix:
# Differs from standard script: rand_pcg features
- cargo test --lib --no-default-features
# TODO: add simd_support feature:
- cargo test --features=serde1,log
- cargo test --features=log
- cargo test --examples
- cargo test --manifest-path rand_core/Cargo.toml
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features
Expand All @@ -86,7 +86,7 @@ matrix:
# Differs from standard script: includes aarch64-apple-ios cross-build
- cargo test --lib --no-default-features
# TODO: add simd_support feature:
- cargo test --features=serde1,log
- cargo test --features=log
- cargo test --examples
- cargo test --manifest-path rand_core/Cargo.toml
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features
Expand All @@ -113,7 +113,8 @@ matrix:
script:
# Differs from standard script: alloc feature, all features, doc build
- cargo test --lib --no-default-features --features=alloc
- cargo test --all-features
# Excludes serde1:
- cargo test --features=nightly,simd_support,log
- cargo test --benches --features=nightly
- cargo test --examples
- cargo test --manifest-path rand_core/Cargo.toml
Expand Down Expand Up @@ -207,7 +208,7 @@ before_install:
script:
- cargo test --lib --no-default-features
# TODO: add simd_support feature:
- cargo test --features=serde1,log
- cargo test --features=log
- cargo test --examples
- cargo test --manifest-path rand_core/Cargo.toml
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ build: false
test_script:
- cargo test --lib --no-default-features --features alloc
# TODO: use --all-features once simd_support is sufficiently stable:
- cargo test --features=serde1,log
- cargo test --features=log
- cargo test --benches --features=nightly
- cargo test --examples
- cargo test --manifest-path rand_core/Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion utils/ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -ex
main() {
cross test --target $TARGET --lib --no-default-features
# TODO: add simd_support feature:
cross test --target $TARGET --features=serde1,log
cross test --target $TARGET --features=log
cross test --target $TARGET --examples
cross test --target $TARGET --manifest-path rand_core/Cargo.toml
cross test --target $TARGET --manifest-path rand_core/Cargo.toml --no-default-features
Expand Down

0 comments on commit 1b58378

Please sign in to comment.