Makefile 529 B

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