Skip to content

Commit

Permalink
Align travis build to actions
Browse files Browse the repository at this point in the history
Failure that occurs only on nightly seems to be more often due to Rust
breakage than a bug. Take deprecation warnings more serious by actively
denying them which warns us of incompatible future versions as nightly
would.
  Note: May remove this again in the future if it doesn't help. We've
  already had the case where the rustc version commitment left us
  without a proper replacement for a while since that had only been
  introduce shortly before deprecation.

Also ensures that tests are ran on all relevant builds instead of only
on nightly.
  • Loading branch information
HeroicKatora committed Oct 1, 2019
1 parent ac93e75 commit dfbc866
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ env:
- FEATURES='tiff'
- FEATURES='webp'
- FEATURES='hdr'
- DEFAULT_FEATURES='yes'
matrix:
allow_failures:
- name: "Clippy"
- rust: nightly
include:
- os: osx
rust: 1.34.2
Expand All @@ -50,13 +52,11 @@ matrix:
- rustup component add clippy
- cargo clippy
script:
- if [ -z "$FEATURES" ]; then
cargo build -v &&
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo test -v; fi &&
cargo doc -v;
else
- if [ -n "$FEATURES" ]; then
cargo build -v --no-default-features --features "$FEATURES" &&
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo test -v --no-default-features --features "$FEATURES"; fi &&
cargo test -v --no-default-features --features "$FEATURES" &&
cargo doc -v --no-default-features --features "$FEATURES";
fi
- cargo test --no-default-features
- if [ -n "$DEFAULT_FEATURES" ]; then
cargo test -v;
fi
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#![warn(missing_docs)]
#![warn(unused_qualifications)]
#![deny(unreachable_pub)]
#![deny(deprecated)]
#![deny(missing_copy_implementations)]
#![cfg_attr(all(test, feature = "benchmarks"), feature(test))]
// it's a bit of a pain otherwise
Expand Down

0 comments on commit dfbc866

Please sign in to comment.