Skip to content

Commit c2370e2

Browse files
authoredApr 15, 2021
update for codecov to work after circleci switch (#22)
1 parent baef749 commit c2370e2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed
 

‎.circleci/config.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
codecov: codecov/codecov@1.0.4
24
jobs:
35
build:
46
working_directory: /app
@@ -10,6 +12,11 @@ jobs:
1012
- run:
1113
name: Install system packages
1214
command: apt-get update && apt-get -y install git unzip
15+
- run:
16+
name: Install xdebug
17+
command: |
18+
pecl install xdebug
19+
docker-php-ext-enable xdebug
1320
- checkout
1421
- run:
1522
name: Install Composer
@@ -28,4 +35,8 @@ jobs:
2835
command: php composer.phar install
2936
- run:
3037
name: Run Unit tests
31-
command: vendor/bin/phpunit
38+
command: php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-clover /tmp/coverage.xml
39+
- store_test_results:
40+
path: /tmp
41+
- codecov/upload:
42+
file: /tmp/coverage.xml

0 commit comments

Comments
 (0)