File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3
3
# This is the main CI script for testing the regex crate and its sub-crates.
4
4
5
5
set -ex
6
+ MSRV=" 1.20.0"
7
+
8
+ # If we're building on 1.20, then lazy_static 1.2 will fail to build since it
9
+ # updated its MSRV to 1.24.1. In this case, we force the use of lazy_static 1.1
10
+ # to build on Rust 1.20.0.
11
+ if [ " $TRAVIS_RUST_VERSION " = " $MSRV " ]; then
12
+ cargo update -p lazy_static --precise 1.1.0
13
+ fi
6
14
7
15
# Builds the regex crate and runs tests.
8
16
cargo build --verbose
@@ -13,7 +21,7 @@ cargo doc --verbose
13
21
# more frequently, and therefore might require a newer version of Rust.
14
22
#
15
23
# This isn't ideal. It's a compromise.
16
- if [ " $TRAVIS_RUST_VERSION " = " 1.20.0 " ]; then
24
+ if [ " $TRAVIS_RUST_VERSION " = " $MSRV " ]; then
17
25
exit
18
26
fi
19
27
You can’t perform that action at this time.
0 commit comments