ci: pin to lazy_static 1.1 in CI

This commit is contained in:
Andrew Gallant 2018-11-07 07:17:55 -05:00
parent 99315723f5
commit 4879ce266a
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

@ -2,6 +2,19 @@
set -ex
MSRV="1.23.0"
# If we're building on 1.23, then lazy_static 1.2 will fail to build since it
# updated its MSRV to 1.24.1. In this case, we force the use of lazy_static 1.1
# to build on Rust 1.23.0.
if [ "$TRAVIS_RUST_VERSION" = "$MSRV" ]; then
cargo update -p lazy_static --precise 1.1.0
# On older versions of Cargo, this apparently needs to be run twice
# if Cargo.lock didn't previously exist. Since this command should be
# idempotent, we run it again unconditionally.
cargo update -p lazy_static --precise 1.1.0
fi
cargo doc --verbose
cargo build --verbose
cargo test --verbose