Browse Source

test_features.sh: re-enable as a simple build

Josh Stone 9 years ago
parent
commit
c9d82acf00
3 changed files with 3 additions and 1 deletions
  1. 1 0
      .travis.yml
  2. 1 1
      .travis/test_features.sh
  3. 1 0
      src/lib.rs

+ 1 - 0
.travis.yml

@@ -6,6 +6,7 @@ rust:
 sudo: false
 script:
   - make test
+  - .travis/test_features.sh
   - |
     [ $TRAVIS_RUST_VERSION != nightly ] || .travis/test_nightly.sh
   - cargo doc

+ 1 - 1
.travis/test_features.sh

@@ -3,5 +3,5 @@
 set -ex
 
 for feature in '' bigint rational complex; do
-  cargo test --verbose --no-default-features --features="$feature"
+  cargo build --verbose --no-default-features --features="$feature"
 done

+ 1 - 0
src/lib.rs

@@ -97,6 +97,7 @@ use std::ops::{Mul};
 
 #[cfg(feature = "num-bigint")]
 pub use num_bigint as bigint;
+#[cfg(feature = "num-complex")]
 pub use num_complex as complex;
 pub use num_integer as integer;
 pub use num_iter as iter;