Skip to content

Commit

Permalink
ci: limit testing on 1.12.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BurntSushi committed Dec 30, 2017
1 parent 55223a5 commit b8f56f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ set -e
# Builds the regex crate and runs tests.
cargo build --verbose
cargo doc --verbose

# If we're testing on an older version of Rust, then only check that we
# can build the crate. This is because the dev dependencies might be updated
# more frequently, and therefore might require a newer version of Rust.
#
# This isn't ideal. It's a compromise.
if [ "$TRAVIS_RUST_VERSION" = "1.12.0" ]; then
exit
fi

if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
cargo build --verbose --manifest-path regex-debug/Cargo.toml
RUSTFLAGS="-C target-feature=+ssse3" cargo test --verbose --features 'simd-accel pattern' --jobs 4
Expand Down

0 comments on commit b8f56f1

Please sign in to comment.