forked from wikimedia/mediawiki-extensions-CirrusSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 785 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
MW_INSTALL_PATH ?= ../..
# mediawiki-vagrant defaults to hhvm rather than php5, which is mostly
# fine but crazy slow for commands like phplint
PHP ?= `command -v php5 || command -v php`
lint: phplint grunt rubocop
phplint:
@find ./ -type f -iname '*.php' -print0 | xargs -0 -P 12 -L 1 ${PHP} -l | \
(grep -v '^No syntax errors detected in' || true)
nodecheck:
@which npm > /dev/null && npm install \
|| (echo "You need to install Node.JS and npm! See http://nodejs.org/" && \
echo "Or just try `apt-get install nodejs nodejs-legacy npm`" && false)
grunt: nodecheck
@npm test
phpunit:
@${PHP} ${MW_INSTALL_PATH}/tests/phpunit/phpunit.php ${MW_INSTALL_PATH}/extensions/CirrusSearch/tests/phpunit/
installhooks:
ln -s ../../scripts/pre-commit .git/hooks/pre-commit