.travis.yml 660 B

12345678910111213141516171819
  1. install:
  2. - curl -s http://www.rust-lang.org/rustup.sh | sudo sh
  3. script:
  4. - cargo build
  5. - cargo test
  6. - cargo doc
  7. after_success: |
  8. [ $TRAVIS_BRANCH = master ] &&
  9. [ $TRAVIS_PULL_REQUEST = false ] &&
  10. echo '<meta http-equiv=refresh content=0;url=url/index.html>' > target/doc/index.html &&
  11. cp github.png target/doc/ &&
  12. sudo pip install ghp-import &&
  13. ghp-import -n target/doc &&
  14. git push -f https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
  15. env:
  16. - secure: DoxnyDvhhRocCKtvyRe0Wa4P/zwhEcSH67kSa1f+KMuLzZQqIxFqCGTha2KzKyuymMMVyUC1Is+MWzVjBtAaIHCm07Do/TH9rWijTZx0pWK9bJ8idxzycGTsZJEyzDQbkpGNRsAfygxwP2r+K6VSE6MDg2M6AjnSLzpjWMLqr+s=