From c2370e2631351ee35e21095db258a939fdb61368 Mon Sep 17 00:00:00 2001 From: Timothy Boronczyk Date: Wed, 14 Apr 2021 22:46:25 -0400 Subject: [PATCH] update for codecov to work after circleci switch (#22) --- .circleci/config.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 87e367a..ead6b82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,6 @@ -version: 2 +version: 2.1 +orbs: + codecov: codecov/codecov@1.0.4 jobs: build: working_directory: /app @@ -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 @@ -28,4 +35,8 @@ jobs: command: php composer.phar install - run: name: Run Unit tests - command: vendor/bin/phpunit \ No newline at end of file + 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 \ No newline at end of file