language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
# Shamelessly copied from https://www.hoverbear.org/2015/03/07/rust-travis-github-pages/#givingtravispermissions
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=typed_builder/index.html>" > target/doc/index.html &&
pip install ghp-import --user && export PATH=$HOME/.local/bin:$PATH &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages