diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-11-07 15:17:55 +0300 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-11-07 15:17:55 +0300 |
commit | 4879ce266a81d95ceea1ff40c1a69387265b9043 (patch) | |
tree | 217d35c7f68e0a17a2f7ceab6c521f4f57d985c9 | |
parent | 99315723f52b0d938af9943c5d44420a74aec6a9 (diff) |
ci: pin to lazy_static 1.1 in CI
-rwxr-xr-x | ci/script.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh index 9452be0..6d71f90 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -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 |