From 88daa37d25c321a46912495ae6cab8acbb00c6c3 Mon Sep 17 00:00:00 2001 From: Eh2406 Date: Fri, 24 Aug 2018 16:32:04 -0400 Subject: [PATCH 1/2] add minimal-versions to CI --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5c41b55..7644622 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,12 @@ rust: - stable - beta - nightly +before_script: + - rustup toolchain install nightly script: - cargo build --verbose - cargo test --verbose - cargo doc + - cargo +nightly generate-lockfile -Z minimal-versions + - cargo build --verbose + - cargo test --verbose From 30698905b564427827e58d2e98374d53a2c2c2ac Mon Sep 17 00:00:00 2001 From: Eh2406 Date: Fri, 24 Aug 2018 16:53:33 -0400 Subject: [PATCH 2/2] only test minimal-versions on nightly --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7644622..05e1541 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,12 @@ rust: - stable - beta - nightly -before_script: - - rustup toolchain install nightly script: - cargo build --verbose - cargo test --verbose - cargo doc - - cargo +nightly generate-lockfile -Z minimal-versions - - cargo build --verbose - - cargo test --verbose + - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then + cargo +nightly generate-lockfile -Z minimal-versions; + cargo build --verbose; + cargo test --verbose; + fi