Skip to content

Commit 3b8eec4

Browse files
committed
Merge pull request #25 from SparkPost/coveralls
Coveralls
2 parents 7b12923 + 6276548 commit 3b8eec4

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
language: php
22
php:
3-
- '5.5'
4-
- '5.4'
3+
- '5.5'
4+
- '5.4'
55
install:
6-
- composer install
7-
script: phpunit --bootstrap test/unit/bootstrap.php ./test/unit
6+
- composer install
7+
before_script:
8+
- curl -s http://getcomposer.org/installer | php
9+
- php composer.phar install --dev --no-interaction
10+
script:
11+
- mkdir -p test/output/report
12+
- composer test
13+
after_script:
14+
- php vendor/bin/coveralls
815
notifications:
916
slack:
1017
secure: mw6HF2KR0YwYcIaYvV6qjuWC+XSIP8SQOe13VwmGf3b783hMcZDZTUS9N4bIfpwYi74A9qmzKdc425OSu45nceAf7hzFusCY5rYMoLQK/ksJ7sd+ay7tWhPRuomG1w8idTyXtzce23zOfBtOCHQakbavH2Uz6mh5lJYPFlMKW4c=

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Travis CI](https://travis-ci.org/SparkPost/php-sparkpost.svg?branch=master)](https://travis-ci.org/SparkPost/php-sparkpost)
2+
[![Coverage Status](https://coveralls.io/repos/SparkPost/php-sparkpost/badge.svg?branch=master&service=github)](https://coveralls.io/github/SparkPost/php-sparkpost?branch=master)
23

34
# SparkPost PHP SDK
45
The official PHP binding for your favorite SparkPost APIs!

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"scripts": {
1212
"post-install-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi",
1313
"post-update-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi",
14-
"test": "phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit/"
14+
"test": "phpunit --coverage-html test/output/report --coverage-clover test/output/clover.xml --bootstrap test/unit/bootstrap.php ./test/unit/"
1515
},
1616
"require": {
1717
"php": ">=5.3.0",
1818
"guzzlehttp/guzzle": "3.8.1"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "4.3.*"
21+
"phpunit/phpunit": "4.3.*",
22+
"satooshi/php-coveralls": "dev-master"
2223
},
2324
"autoload": {
2425
"psr-4": {

0 commit comments

Comments
 (0)