commit
0e31f3c6b3
|
@ -1,9 +1,15 @@
|
||||||
language: rust
|
language: rust
|
||||||
rust:
|
rust:
|
||||||
- 1.8.0
|
|
||||||
- 1.15.0
|
- 1.15.0
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- rust: 1.8.0
|
||||||
|
before_script:
|
||||||
|
# libc 0.2.34 started using #[deprecated]
|
||||||
|
- cargo generate-lockfile
|
||||||
|
- cargo update --package libc --precise 0.2.33
|
||||||
sudo: false
|
sudo: false
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
|
|
12
ci/rustup.sh
12
ci/rustup.sh
|
@ -4,9 +4,15 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
for toolchain in 1.8.0 1.15.0 beta nightly; do
|
export TRAVIS_RUST_VERSION
|
||||||
run="rustup run $toolchain"
|
for TRAVIS_RUST_VERSION in 1.8.0 1.15.0 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 cargo build --verbose
|
||||||
$run $PWD/ci/test_full.sh $toolchain
|
$run $PWD/ci/test_full.sh
|
||||||
$run cargo doc
|
$run cargo doc
|
||||||
done
|
done
|
||||||
|
|
|
@ -2,10 +2,15 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
echo Testing num on rustc ${TRAVIS_RUST_VERSION:=$1}
|
echo Testing num on rustc ${TRAVIS_RUST_VERSION}
|
||||||
|
|
||||||
# All of these packages should build and test everywhere.
|
# All of these packages should build and test everywhere.
|
||||||
for package in bigint complex integer iter rational traits; do
|
for package in bigint complex integer iter rational traits; do
|
||||||
|
if [ "$TRAVIS_RUST_VERSION" = 1.8.0 ]; then
|
||||||
|
# libc 0.2.34 started using #[deprecated]
|
||||||
|
cargo generate-lockfile --manifest-path $package/Cargo.toml
|
||||||
|
cargo update --manifest-path $package/Cargo.toml --package libc --precise 0.2.33 || :
|
||||||
|
fi
|
||||||
cargo build --manifest-path $package/Cargo.toml
|
cargo build --manifest-path $package/Cargo.toml
|
||||||
cargo test --manifest-path $package/Cargo.toml
|
cargo test --manifest-path $package/Cargo.toml
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue