From 322b932127f916eb8936f9304aa0ec2db07e0b5e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 17 Sep 2016 23:21:05 +1200 Subject: [PATCH] Code coverage --- .travis.yml | 7 ++++++- README.md | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d21f82ee4..0ffda61d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,9 @@ before_script: - cd ~/builds/ss script: - - vendor/bin/phpunit graphql/tests + - vendor/bin/phpunit --coverage-clover=coverage.xml graphql/tests + +after_success: + - mv coverage.xml ~/build/$TRAVIS_REPO_SLUG + - cd ~/build/$TRAVIS_REPO_SLUG + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index e4a962ccc..85f2f84a7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # SilverStripe GraphQL Server [![Build Status](https://travis-ci.org/chillu/silverstripe-graphql.svg?branch=master)](https://travis-ci.org/chillu/silverstripe-graphql) +[![codecov](https://codecov.io/gh/chillu/silverstripe-graphql/branch/master/graph/badge.svg)](https://codecov.io/gh/chillu/silverstripe-graphql) This modules serves SilverStripe data as [GraphQL](http://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html) representations,