language: rust

rust:
  - 1.20.0
  - nightly
  - beta
  - stable

cache: cargo

env:
  - CARGO_FEATURES=""
  - CARGO_FEATURES="std"
  - CARGO_FEATURES="std num-complex"

matrix:
  allow_failures:
    - rust: nightly

before_script:
  - cargo build --verbose

script:
  - cargo build --verbose --features "$CARGO_FEATURES"
  - cargo test --verbose --features "$CARGO_FEATURES"
