From 6e54a7dc0b4cd66bcb95db4dbddc4d705dd168c2 Mon Sep 17 00:00:00 2001 From: hcpl Date: Tue, 6 Nov 2018 03:19:01 +0200 Subject: [PATCH 1/2] Test with `-Z minimal-versions` on CI --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 091162b8..12e0aad9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,9 @@ before_script: script: - cargo run -p ci - cargo run --example default + - if [ "${TRAVIS_RUST_VERSION}" = nightly ]; then cargo update -Z minimal-versions; fi + - if [ "${TRAVIS_RUST_VERSION}" = nightly ]; then cargo run -p ci; fi + - if [ "${TRAVIS_RUST_VERSION}" = nightly ]; then cargo run --example default; fi after_success: - travis-cargo --only nightly doc-upload From 5d2434e99843db1540a4a1b679abc279daad87b4 Mon Sep 17 00:00:00 2001 From: hcpl Date: Wed, 7 Nov 2018 07:49:35 +0200 Subject: [PATCH 2/2] Address review suggestions --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 12e0aad9..5a6e0741 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,14 +8,17 @@ rust: before_script: - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH script: + - if [ "${MINIMAL_VERSIONS}" = "y" ]; then cargo update -Z minimal-versions; fi - cargo run -p ci - cargo run --example default - - if [ "${TRAVIS_RUST_VERSION}" = nightly ]; then cargo update -Z minimal-versions; fi - - if [ "${TRAVIS_RUST_VERSION}" = nightly ]; then cargo run -p ci; fi - - if [ "${TRAVIS_RUST_VERSION}" = nightly ]; then cargo run --example default; fi after_success: - travis-cargo --only nightly doc-upload +matrix: + include: + - rust: nightly + env: MINIMAL_VERSIONS=y + notifications: email: on_success: never