Skip to content

Commit b8f56f1

Browse files
committed
ci: limit testing on 1.12.0
The latest update to rand requires a newer version of Rust. Since it's a dev dependency, we shouldn't need to do a semver bump when updating rand. However, CI needs to be told not to run tests. Instead, we merely check that we can build the crate and produce documentation.
1 parent 55223a5 commit b8f56f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/script.sh

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ set -e
77
# Builds the regex crate and runs tests.
88
cargo build --verbose
99
cargo doc --verbose
10+
11+
# If we're testing on an older version of Rust, then only check that we
12+
# can build the crate. This is because the dev dependencies might be updated
13+
# more frequently, and therefore might require a newer version of Rust.
14+
#
15+
# This isn't ideal. It's a compromise.
16+
if [ "$TRAVIS_RUST_VERSION" = "1.12.0" ]; then
17+
exit
18+
fi
19+
1020
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
1121
cargo build --verbose --manifest-path regex-debug/Cargo.toml
1222
RUSTFLAGS="-C target-feature=+ssse3" cargo test --verbose --features 'simd-accel pattern' --jobs 4

0 commit comments

Comments
 (0)