Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Nov 12, 2019
1 parent ffb257e commit cb36d7e
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version: 2.1
DATABASE_COLLATE: utf8mb4_unicode_ci

commands:
enable_pcov:
enable_php_pcov:
steps:
- run:
name: Enable PCOV, disable Xdebug
Expand Down Expand Up @@ -41,6 +41,9 @@ workflows:
requires:
- composer
- test
- coverage-all-upload:
requires:
- test

jobs:
composer:
Expand Down Expand Up @@ -94,7 +97,7 @@ jobs:
- checkout
- attach_workspace:
at: .
- enable_pcov
- enable_php_pcov
- disable_php_memory_limit
- run: php -m
- run: php composer.phar bootstrap-test-environment
Expand All @@ -109,6 +112,18 @@ jobs:
- Tests/reports

test-coverage:
docker:
- image: sulu/php:7.2-cli
environment: *environment_variables
steps:
- checkout
- attach_workspace:
at: .
- enable_php_pcov
- disable_php_memory_limit
- run: php composer.phar test-coverage-checker

coverage-all-upload:
docker:
- image: sulu/php:7.2-cli
environment: *environment_variables
Expand All @@ -117,7 +132,7 @@ jobs:
- attach_workspace:
at: .
- disable_php_memory_limit
- run: php composer.phar test-coverage-checker --
- run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- run: curl -L https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar --output php-coveralls.phar
- run: chmod +x php-coveralls.phar
- run: apt-get update && apt-get install git -y
- run: php php-coveralls.phar --coverage_clover Tests/reports/clover.xml --json_path Tests/reports/coveralls.json

0 comments on commit cb36d7e

Please sign in to comment.