Skip to content

Instantly share code, notes, and snippets.

@Ulv
Last active August 14, 2018 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ulv/03bc268d7f1d58153cafc06575b7864a to your computer and use it in GitHub Desktop.
Save Ulv/03bc268d7f1d58153cafc06575b7864a to your computer and use it in GitHub Desktop.
Автоматическое обновление документации по хуку pre-push
#!/bin/sh
rm -rf "$(pwd)/docs"
phpmd ./src xml cleancode,codesize,controversial,design,naming,unusedcode > "$(pwd)/build/pmd.xml"
phpcs ./src --report-xml="$(pwd)/packages/bitcoin/build/phpcs.xml"
phploc ./src --log-xml="$(pwd)/build/phploc.xml"
phpdox && git add --all docs && git commit -m "Автоматическое обновление документации phpdox"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment