Skip to content

Commit

Permalink
Add check script to run all the checks in composer.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanvyas22 committed Oct 29, 2020
1 parent 64d6cab commit d731777
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion composer.json
Expand Up @@ -39,10 +39,15 @@
}
},
"scripts": {
"check": [
"@cs-check",
"@test:types",
"@test"
],
"cs-fix": "vendor/bin/phpcbf --extensions=php ./src ./tests",
"cs-check": "vendor/bin/phpcs -p --extensions=php ./src ./tests",
"test:types": "phpstan analyse --ansi --memory-limit=-1",
"test": "phpunit --colors=always",
"test-setup": "cp composer.json composer.backup && composer require --dev phpunit/phpunit:\"^8.0\" && mv composer.backup composer.json && cp phpunit.xml.dist phpunit.xml"
"test-setup": "cp phpunit.xml.dist phpunit.xml"
}
}

0 comments on commit d731777

Please sign in to comment.