mediawiki-extensions-Thanks/scripts/pre-commit
Reedy 2dd30b20ab scripts/pre-commit s/Flow/Thanks/
Remove comment about using make; no Makefile

Change-Id: If3f7da5a39b7c208f57a0f588c84715959e822a3
2021-03-21 00:44:33 +00:00

14 lines
372 B
Bash
Executable file

#!/bin/bash
# Code from https://gist.github.com/holysugar/1318698 , simpler than
# http://stackoverflow.com/a/6262715/451712
# Work out location of Thanks/scripts/ directory
dir=$(dirname $(php -r "echo realpath('$0'), \"\\n\";"))
# Move to the project root
cd $(dirname $dir)
find ./ -type f -iname '*.php' -print0 | xargs -0 -P 12 -L 1 php -l
# Run npm test
npm test