Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
48 lines (48 loc) · 1.54 KB
/
Copy pathcomposer.json
File metadata and controls
48 lines (48 loc) · 1.54 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"name": "mediawiki/knowledge-graph",
"type": "mediawiki-extension",
"require": {
"composer/installers": ">=1.0.1"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "51.0.0",
"mediawiki/mediawiki-phan-config": "0.20.0",
"mediawiki/minus-x": "1.1.3",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.4.0"
},
"config": {
"process-timeout": 0,
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"test": [
"@analyze",
"@phpunit"
],
"test-coverage": [
"@analyze",
"@phpunit-coverage"
],
"analyze": [
"@lint",
"@phpcs"
],
"fix": [
"@phpcs-fix"
],
"lint": "parallel-lint . --exclude vendor --exclude node_modules",
"phpcs": "phpcs -ps",
"phpcs-fix": "phpcbf -p",
"phan": "phan --allow-polyfill-parser",
"phpunit": [
"Composer\\Config::disableProcessTimeout",
"cd ${MW_INSTALL_PATH:-../..} && { [ -f tests/phpunit/generatePHPUnitConfig.php ] && { php tests/phpunit/generatePHPUnitConfig.php >/dev/null 2>&1 || true; [ -f phpunit.xml ] || printf '%s' '<phpunit><!-- generatePHPUnitConfig --></phpunit>' > phpunit.xml; } || true; } && MEDIAWIKI_HAS_INTEGRATION_TESTS=1 vendor/bin/phpunit -c extensions/KnowledgeGraph/phpunit.xml.dist --bootstrap tests/phpunit/bootstrap.php"
],
"phpunit-coverage": "@phpunit --testdox --coverage-text --coverage-html coverage/php --coverage-clover extensions/KnowledgeGraph/coverage/php/coverage.xml",
"minus-x": "minus-x check ."
}
}