language: rust

rust:
  - stable
  - beta
  - nightly
  - 1.12.1

script:
  - cargo build
  - cargo build --release
  - cargo build --no-default-features
  - cargo build --release --no-default-features
  - cargo test
  - cargo test --release
  - |
    if [ $TRAVIS_RUST_VERSION == nightly ]; then
      cargo test --features nightly
      cargo test --features nightly --release
    fi
