Skip to content

Commit

Permalink
[#21] Add sample CodeCov config for private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Jun 27, 2022
1 parent 360d0e4 commit c174ff7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .template/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Flutter Templates

[![codecov](https://codecov.io/gh/nimblehq/flutter_templates/branch/main/graph/badge.svg?token=ATUNXDX218)](https://codecov.io/gh/nimblehq/flutter_templates)

All the templates that can be used to kick off a new Flutter application quickly.

## Usage
Expand Down Expand Up @@ -50,6 +52,10 @@ Clone the repository

`$ fvm flutter drive --driver=test_driver/integration_test.dart --target=integration_test/my_home_page_test.dart --flavor staging`

- Code coverage integration:

- CodeCov: for the private repository, we need to set up a [TeamBot](https://docs.codecov.com/docs/team-bot) in `codecov.yml`.

## License

This project is Copyright (c) 2014 and onwards. It is free software,
Expand Down
26 changes: 26 additions & 0 deletions .template/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Sample CodeCov config for private repository
codecov:
bot: luongvo
require_ci_to_pass: yes

coverage:
status:
project: off
patch: off

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,files,tree"
behavior: default
require_changes: no

ignore:
- "lib/di"
- "lib/gen"

0 comments on commit c174ff7

Please sign in to comment.