travis: freeze dependencies that silently broke 1.24.1 compat (#701)

This commit is contained in:
Victor Berger 2018-11-13 02:37:51 +01:00 committed by Francesca Plebani
parent 917db35a84
commit 2c3e420f82

View file

@ -63,6 +63,17 @@ install:
- rustup self update
- rustup target add $TARGET; true
before_script:
- |
if [ "$TRAVIS_RUST_VERSION" == "1.24.1" ]; then
# Some of winit's transitive dependencies have made semver-compatible releases that actually
# break their compatibility with rust 1.24.1. We freeze them to their last compatible version to
# ensure that winit still compiles fine on this rust version.
cargo update
cargo update -p stb_truetype --precise 0.2.2
cargo update -p rusttype --precise 0.7.1
fi
script:
- cargo build --target $TARGET --verbose
- cargo build --target $TARGET --features serde --verbose