language: rust
os:
  - linux
  - osx
rust:
  - stable
  - nightly
matrix:
  exclude:
    - rust: stable
      env: FEATURE=nightly
  allow_failures:
    - os: osx
before_script:
  - pip install 'travis-cargo<0.2' --user  && export PATH=$HOME/Library/Python/2.7/bin:$HOME/.local/bin:$PATH
script:
  - travis-cargo test -- --features $FEATURE --no-default-features
after_success:
  - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable coveralls"
env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
  matrix:
    - FEATURE=with-serde-codegen
    - FEATURE=nightly

language: rust
os:
  - linux
  - osx
rust:
  - stable
  - nightly
matrix:
  exclude:
    - rust: stable
      env: FEATURE=nightly
  allow_failures:
    - os: osx
    - rust: nightly
before_script:
  - pip install 'travis-cargo<0.2' --user  && export PATH=$HOME/Library/Python/2.7/bin:$HOME/.local/bin:$PATH
script:
  - travis-cargo test -- --features $FEATURE --no-default-features
after_success:
  - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable coveralls"
env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
  matrix:
    - FEATURE=with-serde-codegen
    - FEATURE=nightly

Allow continuous builds to fail with rust nightly.
chore(ci): Allow continuous builds to fail with rust nightly.

Some of the crates used by the rust-nightly build are more than a bit
flaky.
