aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-04 20:20:45 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-04 20:20:45 -0400
commit8865d643f407a85d38535b7ac536d2969cc6be1b (patch)
tree6f83a9ce9df9f2acaa33e70a728bccbef6736d96
parent986ea6000a011819830e157518ec01c11981ab17 (diff)
downloadzipstream-php-8865d643f407a85d38535b7ac536d2969cc6be1b.tar.bz2
zipstream-php-8865d643f407a85d38535b7ac536d2969cc6be1b.zip
remove phpdocumentor dependency, add phan dependency, add test-{unit,xml,static} scripts, and add script descriptions
-rw-r--r--composer.json25
1 files changed, 23 insertions, 2 deletions
diff --git a/composer.json b/composer.json
index 753b0b4..9bb9bc1 100644
--- a/composer.json
+++ b/composer.json
@@ -17,7 +17,7 @@
"require-dev": {
"phpunit/phpunit": "^7",
- "phpdocumentor/phpdocumentor": "2.*"
+ "phan/phan": "^1.0"
},
"autoload": {
@@ -33,12 +33,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=ZipStream"
]
+ },
+
+ "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."
}
}