language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
after_success: |
[[ $TRAVIS_JOB_NUMBER = *.3 ]] && # TODO: change to *.1 once custom derive docs get into stable
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=smart_default/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