-
Notifications
You must be signed in to change notification settings - Fork 9
/
composer.json
34 lines (34 loc) · 1.37 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
31
32
33
34
{
"name": "pantheon-systems/terminus-composer-plugin",
"description": "Composer - A Terminus plugin for running Composer commands on a Pantheon site",
"type": "terminus-plugin",
"license": "MIT",
"autoload": {
"psr-4": { "Pantheon\\TerminusComposer\\": "src" }
},
"extra": {
"terminus": {
"compatible-version": "^1|^2"
}
},
"scripts": {
"cs": "phpcs --standard=PSR2 -n src",
"cbf": "phpcbf --standard=PSR2 -n src",
"lint": "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"unit": "phpunit --colors=always tests",
"functional": "TERMINUS_PLUGINS_DIR=.. PATH=tools/bin:$PATH bats -p -t tests/functional",
"install-bats": "if [ ! -f tools/bin/bats ] ; then git clone https://github.com/sstephenson/bats.git tools/bats; tools/bats/install.sh tools; fi",
"install-phpcs": "mkdir -p tools/phpcs && cd tools/phpcs && COMPOSER_BIN_DIR=../../vendor/bin composer require squizlabs/php_codesniffer:^2.7",
"install-phpunit": "mkdir -p tools/phpunit && cd tools/phpunit && COMPOSER_BIN_DIR=../../vendor/bin composer require phpunit/phpunit:^6",
"install-tools": [
"@install-bats",
"@install-phpcs",
"@install-phpunit"
],
"test": [
"@lint",
"@functional",
"@cs"
]
}
}