Skip to content

Commit ac3d3a8

Browse files
committed
Added coveralls to travis.ci file
1 parent 3cf04ea commit ac3d3a8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ php:
55

66
before_script:
77
- curl -s http://getcomposer.org/installer | php
8-
- php composer.phar install
8+
- php composer.phar install --dev
99

1010
script:
11-
- php vendor/bin/phpunit
11+
- mkdir -p build/logs
12+
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
1213

14+
after_script:
15+
- php vendor/bin/coveralls -v

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"php": ">=7"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "^6.2"
26+
"phpunit/phpunit": "^6.2",
27+
"satooshi/php-coveralls": "^1.0"
2728
}
2829
}

0 commit comments

Comments
 (0)