Makefile 604 B

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