Update CI settings

This commit is contained in:
Toshiki Teramura 2018-01-13 00:06:45 +09:00
parent 0b1169c17b
commit 8fbbf6ac06
2 changed files with 13 additions and 2 deletions

View File

@ -7,6 +7,11 @@ set -ex
export TRAVIS_RUST_VERSION
for TRAVIS_RUST_VERSION in 1.8.0 stable beta nightly; do
run="rustup run $TRAVIS_RUST_VERSION"
if [ "$TRAVIS_RUST_VERSION" = 1.8.0 ]; then
# libc 0.2.34 started using #[deprecated]
$run cargo generate-lockfile
$run cargo update --package libc --precise 0.2.33 || :
fi
$run cargo build --verbose
$run $PWD/ci/test_full.sh
done

View File

@ -4,8 +4,14 @@ set -ex
echo Testing num-traits on rustc ${TRAVIS_RUST_VERSION}
# num-integer should build and test everywhere.
# num-traits should build and test everywhere.
cargo build --verbose
cargo test --verbose
# We have no features to test...
# It should build with minimal features too.
cargo build --no-default-features
cargo test --no-default-features
# num-traits with explicit std feature
cargo build --verbose --no-default-features --features="$feature"
cargo test --verbose --no-default-features --features="$feature"