Skip to content

Commit

Permalink
Merge pull request #2 from olyckne/always-run-code-coverage
Browse files Browse the repository at this point in the history
Always run code coverage
  • Loading branch information
olyckne committed Sep 4, 2016
2 parents e7677f2 + 5cb5a7c commit 1fc7143
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 28 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ language: php
php:
- 5.6
- 7.0
- hhvm

env:
global:
- test=test-coverage

cache:
directories:
Expand All @@ -17,10 +12,9 @@ cache:
before_script:
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction
- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]] || [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then test=test; fi

script:
- composer $test
- composer test

after_success:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Route::get('/', function () {
```php
// boostrap/app.php
// uncomment $app->withFacades();
// register the service provider ddsand facade
// register the service provider and facade
$app->register('Olyckne\Pug\PugServiceProvider');
class_alias('Olyckne\Pug\PugFacade', 'Pug');
```
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
}
},
"scripts": {
"test": "phpspec run",
"test-coverage": "phpspec run -c phpspec-with-coverage.yml"
"test": "phpspec run"
}
}
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions phpspec-with-coverage.yml

This file was deleted.

11 changes: 11 additions & 0 deletions phpspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ suites:
psr4_prefix: Olyckne\Pug

formatter.name: pretty

extensions:
- PhpSpec\Extension\CodeCoverageExtension

code_coverage:
format:
- clover
- html
output:
clover: build/logs/clover.xml
html: build/logs/html
2 changes: 1 addition & 1 deletion src/Pug.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(ClientInterface $client)
/**
* send a request to pugme api
*
* @param sring $url
* @param string $url
* @return mixed
* @throws PugNotFoundException
*/
Expand Down

0 comments on commit 1fc7143

Please sign in to comment.