Skip to content

Commit 6d0f1ae

Browse files
committed
Added phpunit and humbug for QA,
1 parent be11da8 commit 6d0f1ae

File tree

3 files changed

+1826
-3
lines changed

3 files changed

+1826
-3
lines changed

composer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"php": "^7.0 || ^5.5",
1616
"psr/http-message": "^1.0"
1717
},
18+
"require-dev": {
19+
"humbug/humbug": "1.0.0-alpha2",
20+
"phpunit/phpunit": "^5.5 || ^4.8"
21+
},
1822
"autoload": {
1923
"psr-4": {
2024
"ApiClients\\Tools\\Psr7\\Oauth1\\": "src/"
@@ -30,5 +34,41 @@
3034
"platform": {
3135
"php": "5.5.9"
3236
}
37+
},
38+
"scripts": {
39+
"ensure-installed": "composer install --ansi -n -q",
40+
"cs": [
41+
"@ensure-installed",
42+
"phpcs --standard=PSR2 src/"
43+
],
44+
"unit": [
45+
"@ensure-installed",
46+
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml"
47+
],
48+
"mutation": [
49+
"@ensure-installed",
50+
"if [ `php -m | grep xdebug | wc -l` -gt 0 ]; then humbug --ansi --incremental; fi"
51+
],
52+
"qa-all": [
53+
"@cs",
54+
"@unit",
55+
"@mutation"
56+
],
57+
"qa-windows": [
58+
"@cs",
59+
"@unit"
60+
],
61+
"qa-ci": [
62+
"@qa-all"
63+
],
64+
"qa-ci-windows": [
65+
"@qa-windows"
66+
],
67+
"qa-contrib": [
68+
"@qa-all"
69+
],
70+
"ci-coverage": [
71+
"if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi"
72+
]
3373
}
3474
}

0 commit comments

Comments
 (0)