-
Notifications
You must be signed in to change notification settings - Fork 9
/
composer.json
30 lines (30 loc) · 1.13 KB
/
composer.json
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
{
"name": "proscrumdev/battleship-php",
"description": "simple console game",
"autoload": {
"classmap": [
"src/"
]
},
"require": {
"php": ">7",
"squizlabs/php_codesniffer": "*"
},
"require-dev": {
"phpunit/phpunit": "^8",
"behat/behat": "3.5.0",
"phpunit/php-code-coverage": "^7.0"
},
"scripts": {
"game": "App::run",
"test": [
"vendor/bin/phpunit -c phpunit.xml --coverage-clover reports/phpunit.coverage.xml --log-junit reports/phpunit.report.xml",
"vendor/bin/behat -f junit --out reports/behave.xml"
],
"at": "vendor/bin/behat -f junit --out reports",
"unittest": "vendor/bin/phpunit -c phpunit.xml --coverage-clover reports/phpunit.coverage.xml --log-junit reports/phpunit.report.xml",
"analysis": "export $(cat .env | xargs) && docker run -v ${PWD}:${PWD} -w ${PWD} mercuriete/sonar-scanner sonar-scanner -Dsonar.exclusions=**/*.xml -Dproject.settings=sonar-scanner.properties -Dsonar.login=$SONAR_TOKEN -Dsonar.host.url=$SONAR_URL",
"lint": "vendor/bin/phpcs -- --standard=PSR12 src test",
"lint-fix": "vendor/bin/phpcbf -- --standard=PSR12 src test"
}
}