File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 11language : rust
22rust :
3- - 1.8.0
43 - 1.15.0
54 - beta
65 - nightly
6+ matrix :
7+ include :
8+ - rust : 1.8.0
9+ before_script :
10+ # libc 0.2.34 started using #[deprecated]
11+ - cargo generate-lockfile
12+ - cargo update --package libc --precise 0.2.33
713sudo : false
814script :
915 - cargo build --verbose
Original file line number Diff line number Diff line change 44
55set -ex
66
7- for toolchain in 1.8.0 1.15.0 beta nightly; do
8- run=" rustup run $toolchain "
7+ export TRAVIS_RUST_VERSION
8+ for TRAVIS_RUST_VERSION in 1.8.0 1.15.0 beta nightly; do
9+ run=" rustup run $TRAVIS_RUST_VERSION "
10+ if [ " $TRAVIS_RUST_VERSION " = 1.8.0 ]; then
11+ # libc 0.2.34 started using #[deprecated]
12+ $run cargo generate-lockfile
13+ $run cargo update --package libc --precise 0.2.33 || :
14+ fi
915 $run cargo build --verbose
10- $run $PWD /ci/test_full.sh $toolchain
16+ $run $PWD /ci/test_full.sh
1117 $run cargo doc
1218done
Original file line number Diff line number Diff line change 22
33set -ex
44
5- echo Testing num on rustc ${TRAVIS_RUST_VERSION:= $1 }
5+ echo Testing num on rustc ${TRAVIS_RUST_VERSION}
66
77# All of these packages should build and test everywhere.
88for package in bigint complex integer iter rational traits; do
9+ if [ " $TRAVIS_RUST_VERSION " = 1.8.0 ]; then
10+ # libc 0.2.34 started using #[deprecated]
11+ cargo generate-lockfile --manifest-path $package /Cargo.toml
12+ cargo update --manifest-path $package /Cargo.toml --package libc --precise 0.2.33 || :
13+ fi
914 cargo build --manifest-path $package /Cargo.toml
1015 cargo test --manifest-path $package /Cargo.toml
1116done
You can’t perform that action at this time.
0 commit comments