Skip to content

Commit

Permalink
Always run code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
olyckne committed Sep 4, 2016
1 parent 6514a04 commit 5cb5a7c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 25 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ php:
- 5.6
- 7.0

env:
global:
- test=test-coverage

cache:
directories:
- vendor
Expand All @@ -16,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
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

0 comments on commit 5cb5a7c

Please sign in to comment.