Skip to content

Commit

Permalink
Add testing of minimal versions
Browse files Browse the repository at this point in the history
Closes #741

This seems to require a couple of hacks unfortunately.
  • Loading branch information
dhardy committed Aug 28, 2019
1 parent bc69323 commit 94aa8fa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ matrix:
env: DESCRIPTION="Miri, nightly"
script:
- sh utils/ci/miri.sh

- rust: nightly
os: linux
env: DESCRIPTION="Minimal dep versions"
script:
- cargo generate-lockfile -Z minimal-versions
- bash utils/ci/script.sh

before_install:
- set -e
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ rand_pcg = { path = "rand_pcg", version = "0.2", optional = true }
# This is a dependency because: we forward wasm feature flags
# This is renamed because: we need getrandom to depend on rand_core/getrandom
getrandom_package = { version = "0.1.1", package = "getrandom", optional = true }
log = { version = "0.4", optional = true }
log = { version = "0.4.4", optional = true }

[dependencies.packed_simd]
# NOTE: so far no version works reliably due to dependence on unstable features
Expand Down
4 changes: 3 additions & 1 deletion rand_distr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ rand = { path = "..", version = "0.7" }
[dev-dependencies]
rand_pcg = { version = "0.2", path = "../rand_pcg" }
# Histogram implementation for testing uniformity
average = "0.9.2"
average = "0.10.0"
# Not a direct dependency but required to boost the minimum version:
conv = "0.3.2"
6 changes: 4 additions & 2 deletions rand_isaac/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ serde1 = ["serde", "rand_core/serde1"]

[dependencies]
rand_core = { path = "../rand_core", version = "0.5" }
serde = { version = "1", features = ["derive"], optional = true }
serde = { version = "1.0.63", features = ["derive"], optional = true }
# Not a direct dependency but required to boost the minimum version:
serde_derive = { version = "1.0.63", optional = true }

[dev-dependencies]
# This is for testing serde, unfortunately we can't specify feature-gated dev
# deps yet, see: https://github.com/rust-lang/cargo/issues/1596
bincode = "1"
bincode = "1.1.4"

0 comments on commit 94aa8fa

Please sign in to comment.