language: rust
sudo: false
matrix:
  include:
    - rust: stable
    - rust: stable
      env:
      - FEATURES='unstable quickcheck'
    - rust: beta
    - rust: nightly
    - rust: nightly
      env:
       - FEATURES='test unstable quickcheck'
       - BENCH=1
branches:
  only:
    - master
script:
  - |
      cargo build --verbose --features "$FEATURES" &&
      cargo test --verbose --features "$FEATURES" &&
      ([ "$BENCH" != 1 ] || cargo bench --verbose --features "$FEATURES") &&
      cargo doc --verbose --features "$FEATURES"
