Skip to content

Commit 34d0d83

Browse files
committed
coveralls
1 parent 537d931 commit 34d0d83

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.coveralls.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
service_name: travis-ci
2+
coverage_clover: coverage.xml
3+
json_path: coverage.json

.travis.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ install:
1414
- composer install --no-interaction --prefer-dist
1515

1616
script:
17-
- php vendor/bin/phpcs --standard=PSR12 --ignore=./src/Resources ./src ./tests
18-
- php vendor/bin/phpstan analyse ./src ./tests --level 7
1917
- php vendor/bin/phpunit
18+
19+
jobs:
20+
include:
21+
- stage: Code Static Analyze (phpstan)
22+
php: 7.2
23+
script:
24+
- php vendor/bin/phpstan analyse ./src ./tests --level 7
25+
26+
- stage: Code Standard Checker
27+
php: 7.2
28+
script:
29+
- php vendor/bin/phpcs --standard=PSR12 --ignore=./src/Resources ./src ./tests
30+
31+
- stage: Code Coverage
32+
php: 7.2
33+
script:
34+
- php vendor/bin/phpunit --coverage-clover ./coverage.xml
35+
after_script:
36+
- wget https://github.com/satooshi/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
37+
- php php-coveralls.phar --verbose

phpunit.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
<env name="KERNEL_CLASS" value="FreezyBee\DataGridBundle\Tests\App\Kernel"/>
88
</php>
99

10+
<filter>
11+
<whitelist>
12+
<directory suffix=".php">./src</directory>
13+
</whitelist>
14+
</filter>
15+
1016
<testsuites>
11-
<testsuite name="My Test Suite">
17+
<testsuite name="Test Suite">
1218
<directory>./tests/*</directory>
1319
</testsuite>
1420
</testsuites>

0 commit comments

Comments
 (0)