ci: pin serde and serde-derive for Rust 1.29.0

This commit is contained in:
Andrew Poelstra 2020-12-28 18:57:43 +00:00 committed by Sebastian
parent a8f2faf96d
commit ed9856f800
1 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,14 @@
FEATURES="base64 bitcoinconsensus use-serde rand" 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 ] if [ "$DO_COV" = true ]
then then
export RUSTFLAGS="-C link-dead-code" export RUSTFLAGS="-C link-dead-code"
@ -52,6 +60,8 @@ then
if [ "$TRAVIS_RUST_VERSION" = "1.29.0" ]; then if [ "$TRAVIS_RUST_VERSION" = "1.29.0" ]; then
cargo generate-lockfile --verbose cargo generate-lockfile --verbose
cargo update -p cc --precise "1.0.41" --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 fi
cargo test --verbose cargo test --verbose