| 1 | language: rust |
| 2 | rust: |
| 3 | - stable |
| 4 | - beta |
| 5 | - nightly |
| 6 | |
| 7 | matrix: |
| 8 | allow_failures: |
| 9 | - rust: nightly |
| 10 | |
| 11 | after_success: | |
| 12 | [ $TRAVIS_BRANCH = master ] && |
| 13 | [ $TRAVIS_PULL_REQUEST = false ] && |
| 14 | cargo doc && |
| 15 | echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2 | tr - _`/index.html>" > target/doc/index.html && |
| 16 | sudo pip install ghp-import && |
| 17 | ghp-import -n target/doc && |
| 18 | git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages |