Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2017-07-26 15:09:23 +0300
committersualko <klaus@jsxc.org>2017-07-26 16:03:43 +0300
commit70207e7831298015677c1ec5fe6f2fb3acd2d004 (patch)
tree0333025ab755a5b373ffb94b5a0a89fe65fece73
parent19ff5d814fcb4848a26545b7d7626f67afa4642b (diff)
add codecov to travis (fix #42)
-rw-r--r--.travis.yml9
-rw-r--r--README.md1
-rw-r--r--phpunit.xml3
3 files changed, 9 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 5b23898..f43f135 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,6 +33,9 @@ install: ./tests/travis/install-$REPO-$BRANCH.sh
# Note the install script should make sure we are in the apps/ojsxc directory
script:
- composer install
- - ./vendor/bin/phpunit -c phpunit.xml
- - ./vendor/bin/phpunit -c phpunit.integration.xml
- - cat ../../data/nextcloud.log || cat ../../data/owncloud.log # in stable9 the log file is still called owncloud.log
+ - ./vendor/bin/phpunit -c phpunit.xml --coverage-clover=unit-coverage.xml
+ - ./vendor/bin/phpunit -c phpunit.integration.xml --coverage-clover=integration-coverage.xml
+ - cat ../../data/nextcloud.log
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/README.md b/README.md
index 7bb574f..2a5f0ef 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@ __Bugtracker and issues:__ https://github.com/jsxc/jsxc/issues<br />
# Nextcloud JavaScript Xmpp Client
[![Build Status](https://travis-ci.org/nextcloud/jsxc.nextcloud.svg?branch=master)](https://travis-ci.org/nextcloud/jsxc.nextcloud)
+[![codecov](https://codecov.io/gh/nextcloud/jsxc.nextcloud/branch/master/graph/badge.svg)](https://codecov.io/gh/nextcloud/jsxc.nextcloud)
![Downloads](https://img.shields.io/github/downloads/nextcloud/jsxc.nextcloud/total.svg)
![GitHub release](https://img.shields.io/github/release/nextcloud/jsxc.nextcloud.svg)
diff --git a/phpunit.xml b/phpunit.xml
index 3881fa2..7ae3f53 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -12,6 +12,7 @@
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">lib</directory>
<exclude>
+ <directory suffix=".php">lib/ContactsMenu</directory>
<directory suffix=".php">lib/db</directory>
<file>lib/ilock.php</file>
<file>lib/memlock.php</file>
@@ -19,4 +20,4 @@
</exclude>
</whitelist>
</filter>
-</phpunit> \ No newline at end of file
+</phpunit>