language: rust

before_install:
    - sudo apt-get install libsuitesparse-dev

matrix:
  include:
    - rust: stable
      env: RUN_RUSTFMT=true
    - rust: beta
    - rust: nightly
      env: WITH_NIGHTLY=true

script:
    - rustc --version
    - cargo --version
    - cargo test --all --verbose
    - cargo test --features=serde --all --verbose
    - cargo test --release --all --verbose
    - cargo run --example heat
    - ./.travis_rustfmt
    - ./.travis_nightly

notifications:
  email:
    - on_success: change
    - on_failure: always

