language: rust
sudo: false

# run builds for all the trains (and more)
rust:
  - 1.12.0
  - stable
  - beta
  - nightly

# load travis-cargo
before_script:
  - |
      pip install 'travis-cargo<0.2' --user &&
      export PATH=$HOME/.local/bin:$PATH

branches:
  only:
    - master
# the main build
script:
  - |
      travis-cargo build &&
      travis-cargo test &&
      travis-cargo bench &&
      travis-cargo doc

env:
  global:
    # override the default `--features unstable` used for the nightly branch (optional)
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""

language: rust
sudo: false

# run builds for all the trains (and more)
rust:
  - 1.12.0
  - stable
  - beta
  - nightly

# load travis-cargo
before_script:
  - |
      pip install 'travis-cargo<0.2' --user &&
      export PATH=$HOME/.local/bin:$PATH

branches:
  only:
    - master
# the main build
script:
  - |
      travis-cargo build -- --features "${FEATURES}" &&
      travis-cargo test -- --features "${FEATURES}" &&
      travis-cargo bench -- --features "${FEATURES}" &&
      travis-cargo doc -- --features "${FEATURES}"

env:
  global:
    # override the default `--features unstable` used for the nightly branch (optional)
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
  matrix:
    - FEATURES=""
    - FEATURES="serde"

matrix:
  exclude:
    - rust: 1.12.0
      env: FEATURES="serde"

Add Travis CI builds for `serde` feature
Add Travis CI builds for `serde` feature
