Skip to content

Commit 557ce71

Browse files
authored
Merge pull request #227 from dennisameling/add-codecov
Add codecov
2 parents d50da3e + 79d969c commit 557ce71

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
# Install Mautic
6060
- cd mautic
6161
- composer install
62+
- pecl install pcov
6263
- php bin/console doctrine:database:create --no-interaction
6364
- php bin/console mautic:install:data --force
6465

@@ -74,7 +75,10 @@ jobs:
7475

7576
# Back to api-library directory
7677
- cd ../
77-
- vendor/bin/phpunit --fail-on-warning
78+
- vendor/bin/phpunit --fail-on-warning --coverage-clover coverage.xml
7879
-
7980
name: CS Fixer
8081
script: vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --using-cache=no --show-progress=dots --diff $(git diff -- '*.php' --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")
82+
83+
after_success:
84+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Latest Stable Version](https://poser.pugx.org/mautic/api-library/v)](//packagist.org/packages/mautic/api-library) [![Total Downloads](https://poser.pugx.org/mautic/api-library/downloads)](//packagist.org/packages/mautic/api-library) [![Latest Unstable Version](https://poser.pugx.org/mautic/api-library/v/unstable)](//packagist.org/packages/mautic/api-library) [![License](https://poser.pugx.org/mautic/api-library/license)](//packagist.org/packages/mautic/api-library)
1+
[![codecov](https://codecov.io/gh/mautic/api-library/branch/master/graph/badge.svg)](https://codecov.io/gh/mautic/api-library) [![Latest Stable Version](https://poser.pugx.org/mautic/api-library/v)](//packagist.org/packages/mautic/api-library) [![Total Downloads](https://poser.pugx.org/mautic/api-library/downloads)](//packagist.org/packages/mautic/api-library) [![Latest Unstable Version](https://poser.pugx.org/mautic/api-library/v/unstable)](//packagist.org/packages/mautic/api-library) [![License](https://poser.pugx.org/mautic/api-library/license)](//packagist.org/packages/mautic/api-library)
22

33
# Using the Mautic API Library
44

0 commit comments

Comments
 (0)