From ed9856f800ff8878335361162da8d63f26450480 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Mon, 28 Dec 2020 18:57:43 +0000 Subject: [PATCH] ci: pin serde and serde-derive for Rust 1.29.0 --- contrib/test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/test.sh b/contrib/test.sh index ce440f6b..00d5f6fa 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -2,6 +2,14 @@ FEATURES="base64 bitcoinconsensus use-serde rand" +# Pin `cc` for Rust 1.29 +if [ "$TRAVIS_RUST_VERSION" = "1.29.0" ]; then + cargo generate-lockfile --verbose + cargo update -p cc --precise "1.0.41" --verbose + cargo update -p serde --precise "1.0.98" --verbose + cargo update -p serde_derive --precise "1.0.98" --verbose +fi + if [ "$DO_COV" = true ] then export RUSTFLAGS="-C link-dead-code" @@ -52,6 +60,8 @@ then if [ "$TRAVIS_RUST_VERSION" = "1.29.0" ]; then cargo generate-lockfile --verbose cargo update -p cc --precise "1.0.41" --verbose + cargo update -p serde --precise "1.0.98" --verbose + cargo update -p serde_derive --precise "1.0.98" --verbose fi cargo test --verbose