]> git.proxmox.com Git - rustc.git/blob - src/vendor/num/ci/test_full.sh
New upstream version 1.26.2+dfsg1
[rustc.git] / src / vendor / num / ci / test_full.sh
1 #!/bin/bash
2
3 set -ex
4
5 echo Testing num on rustc ${TRAVIS_RUST_VERSION}
6
7 # num should build and test everywhere.
8 cargo build --verbose
9 cargo test --verbose
10
11 # It should build with minimal features too.
12 cargo build --no-default-features
13 cargo test --no-default-features
14
15 # Each isolated feature should also work everywhere.
16 for feature in bigint complex rational rustc-serialize serde; do
17 cargo build --verbose --no-default-features --features="$feature"
18 cargo test --verbose --no-default-features --features="$feature"
19 done
20
21 # Downgrade serde and build test the 0.7.0 channel as well
22 cargo update -p serde --precise 0.7.0
23 cargo build --verbose --features "serde"