Skip to content

Commit

Permalink
Integrate with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
hgraca committed May 2, 2018
1 parent 92cc3f0 commit 8374941
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
coverage:
precision: 1 # how many decimal places to display in the UI: 0 <= value <= 4
round: nearest # how coverage is rounded: down/up/nearest
range: 50...100 # custom range of coverage colors from red -> yellow -> green
status:

project: # measuring the overall project coverage
default: # context, you can create multiple ones with custom titles
enabled: yes # must be yes|true to enable this status
target: auto # specify the target coverage for each commit status
# option: "auto" (must increase from parent commit or pull request base)
# option: "X%" a static target percentage to hit

patch: # pull requests only: this commit status will measure the
# entire pull requests Coverage Diff. Checking if the lines
# adjusted are covered at least X%.
default:
enabled: yes # must be yes|true to enable this status
target: 85% # specify the target "X%" coverage to hit




1 change: 1 addition & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build:
coverage:
file: var/coverage.clover.xml
format: php-clover
- command: make test_cov-publish

filter:
paths:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ test_cov:
test_cov-guest:
phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover=${COVERAGE_REPORT_PATH}

test_cov-publish:
bash -c 'bash <(curl -s https://codecov.io/bash)'

up:
if [ ! -f ${DB_PATH} ]; then $(MAKE) db-setup; fi
$(eval UP=ENV=dev docker-compose -f build/container/dev/docker-compose.yml up -t 0)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Symfony Demo Application

[![Build Status][Build]](https://scrutinizer-ci.com/g/hgraca/explicit-architecture-php/build-status/master)
[![Scrutinizer Code Quality][Score]](https://scrutinizer-ci.com/g/hgraca/explicit-architecture-php/?branch=master)
[![Coverage Status][Coverage]](https://scrutinizer-ci.com/g/hgraca/explicit-architecture-php/code-structure)
[![CodeCov][CodeCov]](https://codecov.io/gh/hgraca/explicit-architecture-php)

[![Code Intelligence Status][CodeInt]](https://scrutinizer-ci.com/code-intelligence)

Expand Down Expand Up @@ -91,5 +91,5 @@ Configure the test run itself:

[Build]: https://scrutinizer-ci.com/g/hgraca/explicit-architecture-php/badges/build.png?b=master
[Score]: https://scrutinizer-ci.com/g/hgraca/explicit-architecture-php/badges/quality-score.png?b=master
[Coverage]: https://img.shields.io/scrutinizer/coverage/g/hgraca/explicit-architecture-php.svg?style=flat-square
[CodeCov]: https://codecov.io/gh/hgraca/explicit-architecture-php/branch/master/graph/badge.svg
[CodeInt]: https://scrutinizer-ci.com/g/hgraca/explicit-architecture-php/badges/code-intelligence.svg?b=master

0 comments on commit 8374941

Please sign in to comment.