language: rust
sudo: false
cache: cargo

rust:
  - 1.15.0
  - stable
  - beta
  - nightly

os:
  - linux
  - osx

matrix:
  allow_failures:
    - rust: nightly

script:
  # interleave building and testing in hope that it saves time
  # also avoid doc-testing multiple times---it takes more time and rarely helps
  - cargo build -v
  - cargo test -v
  - cargo build -v --no-default-features --features with-rustc-serialize
  - cargo test -v --no-default-features --features with-rustc-serialize --lib

language: rust
sudo: false
cache: cargo

rust:
  - stable
  - beta
  - nightly

os:
  - linux
  - osx

matrix:
  allow_failures:
    - rust: nightly

script:
  # interleave building and testing in hope that it saves time
  # also avoid doc-testing multiple times---it takes more time and rarely helps
  - cargo build -v
  - cargo test -v
  - cargo build -v --no-default-features --features with-rustc-serialize
  - cargo test -v --no-default-features --features with-rustc-serialize --lib

Stop running CI on 1.15
Stop running CI on 1.15
