From d017a85580a7c550b74f4e78af9e4e61567cc389 Mon Sep 17 00:00:00 2001 From: Jens Neuse Date: Sat, 19 Jan 2019 14:01:35 +0100 Subject: [PATCH 1/4] update circleci config add coveralls integration to circleci config --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9f18e90517..71b19a7b19 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: $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN From 6856ceb1872ae767cb658b184d7fab5faf0de5c6 Mon Sep 17 00:00:00 2001 From: Jens Neuse Date: Sat, 19 Jan 2019 14:04:37 +0100 Subject: [PATCH 2/4] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 71b19a7b19..7ee087b2d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,4 +15,4 @@ jobs: - 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: $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN + - run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN From 0b9643331d110db6130311098e6115ce948af79d Mon Sep 17 00:00:00 2001 From: Jens Neuse Date: Sat, 19 Jan 2019 14:07:28 +0100 Subject: [PATCH 3/4] Update gometalinter.json replace unused+gosimple with staticcheck --- gometalinter.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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": [ From 4e758f11fb62c6f0166c0b905f89b2d8c2c3a060 Mon Sep 17 00:00:00 2001 From: Jens Neuse Date: Sat, 19 Jan 2019 14:09:58 +0100 Subject: [PATCH 4/4] Update README.md add coverade badge to README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.