Makefile 464 B

1234567891011121314151617
  1. test:
  2. cargo test --features query_encoding
  3. cargo test
  4. doc:
  5. cargo doc --features query_encoding
  6. @echo '<meta http-equiv=refresh content=0;url=url/index.html>' > target/doc/index.html
  7. @cp github.png target/doc/
  8. upload-doc: doc
  9. test "$(TRAVIS_BRANCH)" = master
  10. test "$(TRAVIS_PULL_REQUEST)" = false
  11. sudo pip install ghp-import
  12. ghp-import -n target/doc
  13. git push -qf https://$(TOKEN)@github.com/$(TRAVIS_REPO_SLUG).git gh-pages
  14. .PHONY: test doc upload-doc