language: rust
rust:
  - 1.8.0
  - 1.15.0
  - beta
  - nightly
sudo: false
script:
  - cargo build --verbose
  - ./ci/test_full.sh
  - cargo doc
after_success: |
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  [ $TRAVIS_RUST_VERSION = nightly ] &&
  ssh-agent ./ci/deploy.sh
notifications:
  email:
    on_success: never
branches:
  only:
    - master
    - next
    - staging
    - trying
