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 8cfab59 commit c696481
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Expand Up @@ -4,7 +4,4 @@ rust:
- stable
- beta
- nightly
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc
script: ci/script.sh
17 changes: 17 additions & 0 deletions ci/script.sh
@@ -0,0 +1,17 @@
#!/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

0 comments on commit c696481

Please sign in to comment.