aboutsummaryrefslogtreecommitdiff
path: root/php/composer.json
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-04 21:06:49 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-04 21:06:49 -0400
commitf1fc3b66e32cfb8b89d8ff684d86bb33da838cfb (patch)
treea14979e8ecbfe745bad75b522ebcf8c62b86439a /php/composer.json
parentc52f1a3528a4acac197cd705f5a22e199b11a1cd (diff)
downloadluigi-template-f1fc3b66e32cfb8b89d8ff684d86bb33da838cfb.tar.bz2
luigi-template-f1fc3b66e32cfb8b89d8ff684d86bb33da838cfb.zip
php/composer.json: remove phpdocumentor, add phan, update scripts
Diffstat (limited to 'php/composer.json')
-rw-r--r--php/composer.json25
1 files changed, 23 insertions, 2 deletions
diff --git a/php/composer.json b/php/composer.json
index a00d0d4..9cf4a1e 100644
--- a/php/composer.json
+++ b/php/composer.json
@@ -17,7 +17,7 @@
"require-dev": {
"phpunit/phpunit": "^7",
- "phpdocumentor/phpdocumentor": "2.*"
+ "phan/phan": "^1.0"
},
"autoload": {
@@ -27,12 +27,33 @@
},
"scripts": {
- "test": [
+ "test-unit": [
"phpunit --bootstrap vendor/autoload.php tests"
],
+ "test-xml": [
+ "phpunit --bootstrap vendor/autoload.php --log-junit test-results-$(date +%Y%m%d%H%M%S).xml tests"
+ ],
+
+ "test-static": [
+ "phan src/*.php"
+ ],
+
+ "test": [
+ "@test-unit",
+ "@test-static"
+ ],
+
"docs": [
"phpdoc -d src -t docs --template=responsive-twig --title=LuigiTemplate"
]
+ },
+
+ "scripts-descriptions": {
+ "test": "Run all unit tests and the static analyzer.",
+ "test-unit": "Run all unit tests.",
+ "test-xml": "Run all unit tests and export the results as XML.",
+ "test-phan": "Run the static analyzer.",
+ "docs": "Generate the API documentation."
}
}