Skip to content

Commit 7b1a3d3

Browse files
committed
Add Travis and Coveralls support
1 parent 0fcfaf5 commit 7b1a3d3

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.coveralls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage_clover: tests/Logs/clover.xml
2+
json_path: tests/Logs/coveralls-upload.json
3+
service_name: travis-ci

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: php
2+
dist: trusty
3+
php:
4+
- '7.1'
5+
- '7.2'
6+
install:
7+
- composer update
8+
script:
9+
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
10+
after_script:
11+
- php vendor/bin/php-coveralls -v

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
"require-dev": {
2121
"mediact/testing-suite": "@stable",
22-
"kint-php/kint": "^2.2"
22+
"kint-php/kint": "^2.2",
23+
"php-coveralls/php-coveralls": "^2.0"
2324
},
2425
"autoload": {
2526
"psr-4": {

0 commit comments

Comments
 (0)