Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes CI to only test compilation when running on the minimum supported version of Rust.
- Loading branch information
1 parent
8cfab59
commit c696481
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |