Skip to content

Commit b56f784

Browse files
authored
Merge pull request #6 from DawidMazurek/travis
coverage + travis
2 parents 97e1f09 + f3003c4 commit b56f784

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.travis.ci

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: php
2+
3+
php:
4+
- 7.2
5+
6+
before_script:
7+
- composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN
8+
- composer self-update
9+
- composer require codeclimate/php-test-reporter --dev
10+
- composer install --prefer-dist --no-interaction
11+
12+
13+
after_script:
14+
- vendor/bin/test-reporter
15+
16+
after_script:
17+
- vendor/bin/test-reporter --stdout > codeclimate.json
18+
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)' https://codeclimate.com/test_reports"

phpunit.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@
2727
<directory suffix=".php">src</directory>
2828
</whitelist>
2929
</filter>
30+
31+
<logging>
32+
<log type="coverage-clover" target="build/logs/clover.xml"/>
33+
<log type="coverage-text" target="php://stdout"/>
34+
</logging>
3035
</phpunit>

0 commit comments

Comments
 (0)