Skip to content

Commit

Permalink
ci: don't run tests on 1.12.0
Browse files Browse the repository at this point in the history
This changes CI to only test compilation when running on the minimum
supported version of Rust.
  • Loading branch information
BurntSushi committed Jan 1, 2018
1 parent 30cee7b commit e5a318c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Expand Up @@ -4,10 +4,4 @@ rust:
- stable
- beta
- nightly
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
cargo bench --verbose;
fi
script: ci/script.sh
20 changes: 20 additions & 0 deletions ci/script.sh
@@ -0,0 +1,20 @@
#!/bin/sh

set -ex

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

cargo test --verbose
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
cargo bench --verbose --no-run
fi

0 comments on commit e5a318c

Please sign in to comment.