language: rust
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: ThgA8mjlVBCAoR4WtgQZHDZy7VvSG9BOqQ8oEVpMnKYKAUhfIfeRJW3bh6tBVWwiHl2wyJ0QTjZ1iyStzD2oMHPU8es1Fp5sezXTwKy/Ksj81cpXwi4FXqL3L/CzG3JzdmM5jgvYgrqGdaDB1QDNhAuyW9m1qOyniH7bu5+f8XM=

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: ThgA8mjlVBCAoR4WtgQZHDZy7VvSG9BOqQ8oEVpMnKYKAUhfIfeRJW3bh6tBVWwiHl2wyJ0QTjZ1iyStzD2oMHPU8es1Fp5sezXTwKy/Ksj81cpXwi4FXqL3L/CzG3JzdmM5jgvYgrqGdaDB1QDNhAuyW9m1qOyniH7bu5+f8XM=

Build with nightly and beta
Build with nightly and beta
