Skip to content

Commit

Permalink
Use Devel::Cover in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 27, 2024
1 parent ad5175f commit 854ae40
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
---
# Use the latest 2.1 version of CircleCI pipeline process engine. See:
# https://circleci.com/docs/2.0/configuration-reference
version: 2.1
orbs:
codecov: codecov/codecov@4.1.0
# Orchestrate or schedule a set of jobs
workflows:
docker-compose:
Expand Down Expand Up @@ -47,7 +51,18 @@ jobs:
- run:
command: |
pushd metacpan-docker
docker-compose exec -T api_test prove -lr --jobs 2 t
docker-compose exec -T api_test cpm install -g Devel::Cover
name: install Devel::Cover
- run:
command: |
pushd metacpan-docker
docker-compose exec -T api_test env HARNESS_PERL_SWITCHES=-MDevel::Cover prove -lr --jobs 2 t
name: run tests with coverage
- run:
command: |
pushd metacpan-docker
docker-compose exec -T api_test cover
name: generate coverage report
- run:
command: |
pushd metacpan-docker
Expand All @@ -56,3 +71,4 @@ jobs:
docker ps -a | head
name: docker-compose logs
when: on_fail
- codecov/upload

0 comments on commit 854ae40

Please sign in to comment.