.travis.yml 630 B

123456789101112131415161718
  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. sudo pip install ghp-import &&
  12. ghp-import -n target/doc &&
  13. git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
  14. env:
  15. - secure: DoxnyDvhhRocCKtvyRe0Wa4P/zwhEcSH67kSa1f+KMuLzZQqIxFqCGTha2KzKyuymMMVyUC1Is+MWzVjBtAaIHCm07Do/TH9rWijTZx0pWK9bJ8idxzycGTsZJEyzDQbkpGNRsAfygxwP2r+K6VSE6MDg2M6AjnSLzpjWMLqr+s=