Skip to content

Commit 6045f57

Browse files
Jeckersonniden
authored andcommitted
#1365 - Integrate Codecov (#1366)
* #1365 - Create .codecov.yml * #1365 - Enable coverage in codeception.yml * #1365 - Add codecov shield * #1365 - Add after_success codecov step in .travis.yml
1 parent 6633cc0 commit 6045f57

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

.codecov.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "65...90"
9+
10+
status:
11+
project:
12+
default:
13+
# Allow the coverage to drop by threshold %, and posting a success status.
14+
threshold: 0.5
15+
patch:
16+
default:
17+
# trial operation
18+
target: 0%
19+
changes: no
20+
21+
comment:
22+
layout: "header, diff"
23+
behavior: default
24+
require_changes: no
25+
26+
ignore:
27+
- ".git"
28+
- "*.yml"
29+
- "*.json"
30+
- "*.md"
31+
- "*.dist"
32+
- "*.txt"
33+
- "*.bat"
34+
# ignore folders and all its contents
35+
- ".ci/.*"
36+
- ".github/.*"
37+
- ".phalcon/.*"
38+
- "ide/.*"
39+
- "bootstrap/.*"
40+
- "resources/.*"
41+
- "templates/.*"
42+
- "tests/.*"
43+
- "vendor/.*"

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ script:
7474
- vendor/bin/psalm --show-info=false
7575
- vendor/bin/phpstan analyse -l 5 -c phpstan.neon src -v
7676

77+
after_success:
78+
- bash <(curl -s https://codecov.io/bash)
79+
7780
deploy:
7881
provider: releases
7982
api_key: $GITHUB_TOKEN

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Phalcon Devtools
22

3+
[![codecov](https://codecov.io/gh/phalcon/phalcon-devtools/branch/4.0.x/graph/badge.svg)](https://codecov.io/gh/phalcon/phalcon-devtools)
34
[![Latest Version](https://img.shields.io/packagist/v/phalcon/devtools.svg?style=flat-square)][:devtools:]
45
[![Software License](https://img.shields.io/badge/license-BSD--3-brightgreen.svg?style=flat-square)][:license:]
56
[![Total Downloads](https://img.shields.io/packagist/dt/phalcon/devtools.svg?style=flat-square)][:packagist:]

codeception.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ actor_suffix: Tester
1414
extensions:
1515
enabled:
1616
- Codeception\Extension\RunFailed
17+
coverage:
18+
enabled: true
19+
include:
20+
- src/*

0 commit comments

Comments
 (0)