Update CI settings
This commit is contained in:
parent
0b1169c17b
commit
8fbbf6ac06
|
@ -7,6 +7,11 @@ set -ex
|
||||||
export TRAVIS_RUST_VERSION
|
export TRAVIS_RUST_VERSION
|
||||||
for TRAVIS_RUST_VERSION in 1.8.0 stable beta nightly; do
|
for TRAVIS_RUST_VERSION in 1.8.0 stable beta nightly; do
|
||||||
run="rustup run $TRAVIS_RUST_VERSION"
|
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 cargo build --verbose
|
||||||
$run $PWD/ci/test_full.sh
|
$run $PWD/ci/test_full.sh
|
||||||
done
|
done
|
||||||
|
|
|
@ -4,8 +4,14 @@ set -ex
|
||||||
|
|
||||||
echo Testing num-traits on rustc ${TRAVIS_RUST_VERSION}
|
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 build --verbose
|
||||||
cargo test --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"
|
||||||
|
|
Loading…
Reference in New Issue