forked from pantheon-systems/terminus-secrets-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
33 lines (33 loc) · 1.34 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
{
"name": "pantheon-systems/terminus-secrets-plugin",
"description": "Secrets - A Terminus plugin that allows for manipulation of a 'secrets' file for use with Quicksilver.",
"license": "MIT",
"type": "terminus-plugin",
"autoload": {
"psr-4": { "Pantheon\\TerminusSecrets\\": "src" }
},
"extra": {
"terminus": {
"compatible-version": "^1|^2"
}
},
"require-dev": {
},
"scripts": {
"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",
"functional": "TERMINUS_PLUGINS_DIR=.. PATH=tools/bin:$PATH bats tests/terminus-1",
"cs": "PATH=tools/bin:$PATH phpcs --standard=PSR2 -n src Commands",
"cbf": "PATH=tools/bin:$PATH phpcbf --standard=PSR2 -n src Commands",
"install-tools": [
"@install-bats",
"@install-phpcs",
"@install-phpunit"
],
"test": [
"@functional",
"@cs"
]
}
}