From 2c3e420f828f8b507205f7ed0b4d8cfc6f27cdd2 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 13 Nov 2018 02:37:51 +0100 Subject: [PATCH] travis: freeze dependencies that silently broke 1.24.1 compat (#701) --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 83904be4..350a0884 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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