Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. vendor/bin/phpunit
  5. cover:
  6. vendor/bin/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.php 8004 LibEv &
  11. wstest -m testeeserver -w ws://localhost:8000 &
  12. sleep 1
  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. sleep 1
  18. wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-quick.json
  19. killall php
  20. profile:
  21. php -d 'xdebug.profiler_enable=1' tests/autobahn/bin/fuzzingserver.php 8000 LibEvent &
  22. sleep 1
  23. wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-profile.json
  24. killall php
  25. apidocs:
  26. apigen --title Ratchet -d reports/api \
  27. -s src/ \
  28. -s vendor/ratchet/rfc6455/src \
  29. -s vendor/react/event-loop/src \
  30. -s vendor/react/socket/src \
  31. -s vendor/react/stream/src \
  32. -s vendor/psr/http-message/src \
  33. -s vendor/symfony/http-foundation/Session \
  34. -s vendor/symfony/routing \
  35. -s vendor/evenement/evenement/src/Evenement \
  36. --exclude=vendor/symfony/routing/Tests \