Skip to content

Commit 52e83f9

Browse files
authored
Merge pull request #1385 from metacpan/haarg/codecovbash
generate code coverage in a format compatible with Codecov
2 parents 5691cb1 + 67adff6 commit 52e83f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- run:
3131
name: run tests with coverage
3232
command: |
33-
docker compose --profile test run --env HARNESS_PERL_SWITCHES=-MDevel::Cover -v ./cover_db:/app/cover_db/ api-test bash -c 'prove -lr -j4 t && cover -report json'
33+
docker compose --profile test run --env HARNESS_PERL_SWITCHES=-MDevel::Cover -v ./cover_db:/app/cover_db/ api-test bash -c 'prove -lr -j4 t && cover -report codecovbash'
3434
# We are relying on environment variables from the host to be available when
3535
# we publish the report, so we publish from the host rather than trying
3636
# to propagate env variables to the container.
3737
- codecov/upload:
38-
file: cover_db/cover.json
38+
file: cover_db/codecov.json

cpanfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,5 @@ on develop => sub {
162162
requires 'PPIx::Regexp', '0.085'; # Perl::Critic
163163
requires 'String::Format', '1.18'; # Perl::Critic
164164
requires 'Devel::Cover';
165+
requires 'Devel::Cover::Report::Codecovbash';
165166
};

0 commit comments

Comments
 (0)