language: rust
rust:
  - 1.20.0
  - nightly
  - beta
  - stable
script: |
  cargo build --verbose &&
  cargo test --verbose &&
  cargo test --verbose --features serde &&
  ([ $TRAVIS_RUST_VERSION != nightly ] || cargo check --verbose --no-default-features) &&
  ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features union) &&
  ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --all-features) &&
  ([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench)
notifications:
  webhooks: http://build.servo.org:54856/travis
