diff options
author | Jordan Nornhold <nornholdj@gmail.com> | 2015-10-02 15:31:41 -0400 |
---|---|---|
committer | Jordan Nornhold <nornholdj@gmail.com> | 2015-10-02 15:31:41 -0400 |
commit | 3b8eec48595b1e74a1495f0c5530cbab69c881d5 (patch) | |
tree | 7e516000cef86aff97080f48e6f4491676162267 | |
parent | 7b129232cea79cca8cf4c5cf25c561871af7d2d4 (diff) | |
parent | 6276548f6991258d72c5a62a01947ba9b0429873 (diff) | |
download | php-sparkpost-3b8eec48595b1e74a1495f0c5530cbab69c881d5.zip php-sparkpost-3b8eec48595b1e74a1495f0c5530cbab69c881d5.tar.gz php-sparkpost-3b8eec48595b1e74a1495f0c5530cbab69c881d5.tar.bz2 |
Merge pull request #25 from SparkPost/coveralls
Coveralls
-rw-r--r-- | .travis.yml | 15 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | composer.json | 5 |
3 files changed, 15 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 5f42efd..0de6d9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,17 @@ language: php php: -- '5.5' -- '5.4' + - '5.5' + - '5.4' install: -- composer install -script: phpunit --bootstrap test/unit/bootstrap.php ./test/unit + - composer install +before_script: + - curl -s http://getcomposer.org/installer | php + - php composer.phar install --dev --no-interaction +script: + - mkdir -p test/output/report + - composer test +after_script: + - php vendor/bin/coveralls notifications: slack: secure: mw6HF2KR0YwYcIaYvV6qjuWC+XSIP8SQOe13VwmGf3b783hMcZDZTUS9N4bIfpwYi74A9qmzKdc425OSu45nceAf7hzFusCY5rYMoLQK/ksJ7sd+ay7tWhPRuomG1w8idTyXtzce23zOfBtOCHQakbavH2Uz6mh5lJYPFlMKW4c= @@ -1,4 +1,5 @@ [](https://travis-ci.org/SparkPost/php-sparkpost) +[](https://coveralls.io/github/SparkPost/php-sparkpost?branch=master) # SparkPost PHP SDK The official PHP binding for your favorite SparkPost APIs! diff --git a/composer.json b/composer.json index efdf3a0..e1fd6a6 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,15 @@ "scripts": { "post-install-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", "post-update-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", - "test": "phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit/" + "test": "phpunit --coverage-html test/output/report --coverage-clover test/output/clover.xml --bootstrap test/unit/bootstrap.php ./test/unit/" }, "require": { "php": ">=5.3.0", "guzzlehttp/guzzle": "3.8.1" }, "require-dev": { - "phpunit/phpunit": "4.3.*" + "phpunit/phpunit": "4.3.*", + "satooshi/php-coveralls": "dev-master" }, "autoload": { "psr-4": { |