From c6bce8a130446e380b9cc1a7f3bc52e7f8f2cf46 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 16 May 2018 12:19:47 -0700 Subject: [PATCH] test i128 only on newer rustc --- .travis.yml | 2 ++ ci/rustup.sh | 2 +- ci/test_full.sh | 14 ++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8ada3f7b..8a4946c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: rust rust: - 1.15.0 + - 1.20.0 + - 1.25.0 - stable - beta - nightly diff --git a/ci/rustup.sh b/ci/rustup.sh index dc1aa141..e8d1ba74 100755 --- a/ci/rustup.sh +++ b/ci/rustup.sh @@ -5,7 +5,7 @@ set -ex export TRAVIS_RUST_VERSION -for TRAVIS_RUST_VERSION in 1.15.0 stable beta nightly; do +for TRAVIS_RUST_VERSION in 1.15.0 1.20.0 1.25.0 stable beta nightly; do run="rustup run $TRAVIS_RUST_VERSION" $run cargo build --verbose $run $PWD/ci/test_full.sh diff --git a/ci/test_full.sh b/ci/test_full.sh index d9cf996d..6521bfc6 100755 --- a/ci/test_full.sh +++ b/ci/test_full.sh @@ -18,5 +18,15 @@ for feature in rand serde; do cargo test --verbose --no-default-features --features="$feature" done -cargo build --all-features -cargo test --all-features +# test `i128` and all features together +if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then + cargo build --verbose --features=i128 + cargo test --verbose --features=i128 + + cargo build --all-features + cargo test --all-features +else + # all except `i128` + cargo build --features="rand serde" + cargo test --features="rand serde" +fi