Skip to content

Commit

Permalink
update for codecov to work after circleci switch (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tboronczyk authored Apr 15, 2021
1 parent baef749 commit c2370e2
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 2
version: 2.1
orbs:
codecov: codecov/[email protected]
jobs:
build:
working_directory: /app
Expand All @@ -10,6 +12,11 @@ jobs:
- run:
name: Install system packages
command: apt-get update && apt-get -y install git unzip
- run:
name: Install xdebug
command: |
pecl install xdebug
docker-php-ext-enable xdebug
- checkout
- run:
name: Install Composer
Expand All @@ -28,4 +35,8 @@ jobs:
command: php composer.phar install
- run:
name: Run Unit tests
command: vendor/bin/phpunit
command: php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-clover /tmp/coverage.xml
- store_test_results:
path: /tmp
- codecov/upload:
file: /tmp/coverage.xml

0 comments on commit c2370e2

Please sign in to comment.