diff --git a/.circleci/config.yml b/.circleci/config.yml index 9f18e90517..7ee087b2d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,4 +12,7 @@ jobs: - run: go get -u github.com/alecthomas/gometalinter - run: gometalinter --install - run: gometalinter --config ./gometalinter.json ./pkg/** - - run: go test -v ./... + - run: go get -u golang.org/x/tools/cmd/cover + - run: go get -u github.com/mattn/goveralls + - run: go test -v -covermode=count -coverprofile=coverage.out ./... + - run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN diff --git a/README.md b/README.md index 546ebbb920..f96c8fae5c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![CircleCI](https://circleci.com/gh/jensneuse/graphql-go-tools.svg?style=svg)](https://circleci.com/gh/jensneuse/graphql-go-tools) +[![Coverage Status](https://coveralls.io/repos/github/jensneuse/graphql-go-tools/badge.svg?branch=master)](https://coveralls.io/github/jensneuse/graphql-go-tools?branch=master) [![CircleCI](https://circleci.com/gh/jensneuse/graphql-go-tools.svg?style=svg)](https://circleci.com/gh/jensneuse/graphql-go-tools) # graphql-go-tools This repository implements useful graphql tools in the golang programming language. diff --git a/gometalinter.json b/gometalinter.json index 9830b879f8..9bed79bb80 100644 --- a/gometalinter.json +++ b/gometalinter.json @@ -8,10 +8,9 @@ "Enable": [ "deadcode", "gofmt", - "gosimple", "ineffassign", "misspell", - "unused", + "staticcheck", "vet" ], "Exclude": [