language: rust
rust:
- stable
- beta
- nightly
sudo: false
notifications:
email:
on_success: never
on_failure: always
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- travis-cargo --only nightly build
- travis-cargo --only nightly test
- travis-cargo --only nightly doc -- --no-deps
- travis-cargo build -- --no-default-features
- travis-cargo test -- --no-default-features
- rustdoc --test README.md -L target/debug
after_success:
- curl https://mvdnes.github.io/rust-docs/travis-doc-upload.sh | bash
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""