d3e81e551516ed4e11ec6455d0a4684dad0622af
[yaffs-website] / vendor / g1a / composer-test-scenarios / example-composer.json
1 {
2     "name": "org/example",
3     "description": "Example composer.json for a project utilizing composer-test-scenarios.",
4     "license": "MIT",
5     "authors": [
6         {
7             "name": "Author Name",
8             "email": "author@example.com"
9         }
10     ],
11     "autoload":{
12         "psr-4":{
13             "Org\\Example\\": "src"
14         }
15     },
16     "autoload-dev": {
17         "psr-4": {
18             "Org\\TestUtils\\": "tests/src"
19         }
20     },
21     "require": {
22         "php": ">=5.6.0"
23     },
24     "require-dev": {
25         "g1a/composer-test-scenarios": "^1",
26         "phpunit/phpunit": "^4.8|^5.5.4",
27         "satooshi/php-coveralls": "^2",
28         "squizlabs/php_codesniffer": "^2.7"
29     },
30     "config": {
31         "optimize-autoloader": true,
32         "sort-packages": true,
33         "platform": {
34             "php": "5.6"
35         }
36     },
37     "scripts": {
38         "cs": "phpcs --standard=PSR2 -n src",
39         "cbf": "phpcbf --standard=PSR2 -n src",
40         "unit": "phpunit --colors=always",
41         "lint": [
42             "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
43             "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
44         ],
45         "test": [
46             "@lint",
47             "@unit",
48             "@cs"
49         ],
50         "scenario": "scenarios/install",
51         "post-update-cmd": [
52             "create-scenario symfony2 'symfony/console:^2.8' --platform-php '5.4' --no-lockfile",
53             "create-scenario symfony3 'symfony/console:^3.0' --platform-php '5.6'",
54             "create-scenario symfony4 'symfony/console:^4.0'",
55             "dependency-licenses"
56         ]
57     },
58     "extra": {
59         "branch-alias": {
60             "dev-master": "1.x-dev"
61         }
62     }
63 }