mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
a7cf20d9fe
Clearly broken, as it tries to include a non-existing Resources.php file.
Also it's pretending to be MediaWiki 1.23, which is plenty old.
It was supposed to be run via the Makefile, but that's been broken since at
least 111b671444
. If this functionality of identifying duplicate CSS rules
is still wanted, I'm sure there's a better way to do it than with a hacky PHP
script and a ruby tool.
Mainly removed since it's causing a phan-taint-check-plugin warning (T202383).
Change-Id: Id1d117f41f93adec4bba7191843aa415c4049d5f
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
MW_INSTALL_PATH ?= ../..
|
|
MEDIAWIKI_LOAD_URL ?= http://localhost:8080/w/load.php
|
|
|
|
# mediawiki-vagrant default to hhvm rather than php5, which is mostly
|
|
# fine but really slow for commands like phplint
|
|
PHP=/usr/bin/php5
|
|
|
|
###
|
|
# Meta stuff
|
|
###
|
|
|
|
remotes:
|
|
@scripts/remotecheck.sh
|
|
|
|
# code review/pull patches/etc from command line
|
|
gerrit: remotes
|
|
@scripts/remotes/gerrit.py --project 'mediawiki/extensions/Echo' --gtscore -1 --ignorepattern 'WIP'
|
|
|
|
# interactively make sure en.json and qqq.json have all the
|
|
# same message keys
|
|
message: remotes
|
|
@python scripts/remotes/message.py
|
|
|
|
# non-interactive version of message outputs result via exit code
|
|
messagecheck: remotes
|
|
@python scripts/remotes/message.py check
|
|
|
|
###
|
|
# Lints
|
|
###
|
|
lint: jshint phplint checkless messagecheck
|
|
|
|
# Verify all php in the project has valid syntax
|
|
phplint:
|
|
@find ./ -type f -iname '*.php' -print0 | xargs -0 -P 12 -L 1 ${PHP} -l
|
|
|
|
# Install nodejs dependencies for jshint
|
|
nodecheck:
|
|
@which npm > /dev/null && npm install \
|
|
|| (echo "You need to install Node.JS! See http://nodejs.org/" && false)
|
|
|
|
# Verify all javascript in the project has valid syntax and follows jshint rules
|
|
jshint: nodecheck
|
|
@node_modules/.bin/jshint modules/ tests/qunit --config .jshintrc
|
|
|
|
# Verify all less files are compilable
|
|
checkless:
|
|
@${PHP} ../../maintenance/checkLess.php
|
|
|
|
###
|
|
# Testing
|
|
###
|
|
test: phpunit
|
|
|
|
# Run the projects phpunit tests
|
|
phpunit:
|
|
cd ${MW_INSTALL_PATH}/tests/phpunit && ${PHP} phpunit.php --configuration ${MW_INSTALL_PATH}/extensions/Echo/tests/echo.suite.xml --group=Echo
|