Add useful composer scripts

This commit is contained in:
adlawson 2015-07-21 15:37:58 +01:00
parent 9654cf18b0
commit 421826a923

View File

@ -1,6 +1,9 @@
{ {
"name": "adlawson/vfs", "name": "adlawson/vfs",
"description": "Virtual file system", "description": "Virtual file system",
"homepage": "https://github.com/adlawson/php-vfs",
"license": "MIT",
"type": "library",
"keywords": [ "keywords": [
"dir", "dir",
"directory", "directory",
@ -13,13 +16,10 @@
"wrapper", "wrapper",
"write" "write"
], ],
"license": "MIT",
"type": "library",
"authors": [ "authors": [
{ {
"name": "Andrew Lawson", "name": "Andrew Lawson",
"homepage": "http://adlawson.com", "homepage": "http://adlawson.com"
"role": "Developer"
} }
], ],
"autoload": { "autoload": {
@ -41,5 +41,15 @@
"fabpot/php-cs-fixer": "^1.9", "fabpot/php-cs-fixer": "^1.9",
"mockery/mockery": "^0.9", "mockery/mockery": "^0.9",
"phpunit/phpunit": "^4.7" "phpunit/phpunit": "^4.7"
},
"scripts": {
"test": "vendor/bin/phpunit --colors=always",
"test:acceptance": "vendor/bin/phpunit --colors=always --testsuite acceptance",
"test:functional": "vendor/bin/phpunit --colors=always --testsuite functional",
"test:unit": "vendor/bin/phpunit --colors=always --testsuite unit",
"lint:fix": [
"vendor/bin/php-cs-fixer fix src --level=psr2",
"vendor/bin/php-cs-fixer fix test --level=psr2"
]
} }
} }