language: rust

rust:
    - 1.0.0-beta
    - nightly

language: rust
rust:
- 1.0.0-beta
- nightly
after_success: |
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  cargo doc &&
  echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
  sudo pip install ghp-import &&
  ghp-import -n target/doc &&
  git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
  global:
    secure: ueWZoYHNmficGPMDmcERVtC3dcEjdJxPA4RPSknYGXMV9LJgvRRMAqa/9lG4uTb/mgIppALZTRF+F+6Tl8cxrySANSmClT11p9dZHI7fmlIE/eRqwviDHnYNOP7FCsWSQsFkjjzK4Q78h3cqsqjLuIaf7UjgsjPKNOrLmY2PIlg=

Build docs and push to GitHub pages
Build docs and push to GitHub pages
