Skip to content

Commit

Permalink
Downgrade dependencies on minimum versions build
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 15, 2019
1 parent 5b5d727 commit b2e6cf8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,18 @@ matrix:
- rust: stable
name: "rustfmt"
script: ./ci/rustfmt.sh

before_script:
# lazy_static 1.4.0 requires Rust 1.27+
# and cfg-if 0.1.10 requires Rust 1.31+ so downgrade it.
- |
if [[ "$TRAVIS_RUST_VERSION" == "1.26.0" ]]; then
cargo generate-lockfile
cargo update -p cfg-if --precise 0.1.9
cargo update -p lazy_static --precise 1.3.0
fi
- |
if [[ "$TRAVIS_RUST_VERSION" == "1.28.0" ]]; then
cargo generate-lockfile
cargo update -p cfg-if --precise 0.1.9
fi

0 comments on commit b2e6cf8

Please sign in to comment.