Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # This file is intended to ease the author's development and testing process
  2. # Users do not need to use `make`; Ratchet does not need to be compiled
  3. test:
  4. phpunit
  5. cover:
  6. phpunit --coverage-text --coverage-html=reports/coverage
  7. abtests:
  8. ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8001 LibEvent &
  9. ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8002 StreamSelect &
  10. ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver-noutf8.php 8003 StreamSelect &
  11. ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8004 LibEv &
  12. wstest -m testeeserver -w ws://localhost:8000 &
  13. wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-all.json
  14. killall php wstest
  15. abtest:
  16. ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8000 StreamSelect &
  17. wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-quick.json
  18. killall php
  19. profile:
  20. php -d 'xdebug.profiler_enable=1' tests/autobahn/bin/fuzzingserver.php 8000 LibEvent &
  21. wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-profile.json
  22. killall php
  23. apidocs:
  24. apigen --title Ratchet -d reports/api -s src/ \
  25. -s vendor/react \
  26. -s vendor/guzzle \
  27. -s vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session \
  28. -s vendor/symfony/routing/Symfony/Component/Routing \
  29. -s vendor/evenement/evenement/src/Evenement