diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..32c076e46 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,2 @@ +codecov: + branch: master \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index dbbcc4e86..ba20ffde4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ cache: - $HOME/.m2 after_success: + # Send coverage data + - bash <(curl -s https://codecov.io/bash) + # Push docker image to Docker Hub - if [ "$TRAVIS_BRANCH" == "master" ]; then docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker push introproventures/graphql-jpa-query-example:latest; diff --git a/README.md b/README.md index a2514dd5b..70bb122e9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ GraphQL Query for JPA Entity Model =============== [![Build Status](https://travis-ci.org/introproventures/graphql-jpa-query.svg?branch=master)](https://travis-ci.org/introproventures/graphql-jpa-query) +[![codecov](https://codecov.io/gh/introproventures/graphql-jpa-query/branch/master/graph/badge.svg)](https://codecov.io/gh/introproventures/graphql-jpa-query) This library uses [graphql-java v3.0](https://github.com/andimarek/graphql-java) to derive and build the GraphQL schema from JPA Entity Schema provided by entity classes.