language: rust
rust:
- stable
- beta
- nightly
sudo: false
script:
- cargo test
- rustdoc --test Readme.md -L target/debug/deps -L target/debug
- cargo doc --no-deps
notifications:
email:
on_success: never
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
echo '<meta http-equiv=refresh content=0;url=backtrace/index.html>' > target/doc/index.html &&
pip install ghp-import --user $USER &&
$HOME/.local/bin/ghp-import -n target/doc &&
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure:
os:
- linux
- osx