mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-16 11:29:46 +00:00
1336c38688
Persmission problem with pre-commit file in Thanks extension has been fixed. Bug: T111738 Change-Id: I5d1ff4d8705a9fd33a3c3cf1c1623500e3025972
17 lines
480 B
Bash
Executable file
17 lines
480 B
Bash
Executable file
#!/bin/bash
|
|
# Enable all the git hooks by executing the following from the project root directory
|
|
# $ make installhooks
|
|
#
|
|
# Code from https://gist.github.com/holysugar/1318698 , simpler than
|
|
# http://stackoverflow.com/a/6262715/451712
|
|
|
|
# Work out location of Flow/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
|