Skip to content

Commit

Permalink
test i128 only on newer rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 16, 2018
1 parent 04252b7 commit c6bce8a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: rust
rust:
- 1.15.0
- 1.20.0
- 1.25.0
- stable
- beta
- nightly
Expand Down
2 changes: 1 addition & 1 deletion ci/rustup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions ci/test_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c6bce8a

Please sign in to comment.