os:
  - linux
  - osx
language: rust
rust:
  - stable
  - beta
  - nightly
sudo: false
before_script:
  - pip install -v 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
  - if [[ -e ~/Library/Python/2.7/bin ]]; then export PATH=~/Library/Python/2.7/bin:$PATH; fi
script:
  - cargo build --verbose
  - cargo test --verbose
  - travis-cargo --only nightly test
  - cargo doc --no-deps
after_success:
  - travis-cargo --only nightly doc-upload
env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=unstable_testing
    - secure: "DoZ8g8iPs+X3xEEucke0Ae02JbkQ1qd1SSv/L2aQqxULmREtRcbzRauhiT+ToQO5Ft1Lul8uck14nPfs4gMr/O3jFFBhEBVpSlbkJx7eNL3kwUdp95UNroA8I43xPN/nccJaHDN6TMTD3+uajTQTje2SyzOQP+1gvdKg17kguvE="



notifications:
  email:
    on_success: never
