language: rust
rust:
  - nightly
sudo: false

after_success: |
    cargo doc \
    && echo '<meta http-equiv=refresh content=0;url=typedef/index.html>' > target/doc/index.html && \
    sudo pip install ghp-import && \
    ghp-import -n target/doc && \
    git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages

language: rust
rust:
  - nightly

after_success: |
    cargo doc \
    && echo '<meta http-equiv=refresh content=0;url=typedef/index.html>' > target/doc/index.html && \
    sudo pip install ghp-import && \
    ghp-import -n target/doc && \
    git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages

Add back sudo because ghp does not work without root.
Add back sudo because ghp does not work without root.
