From ad9d927ae465b3b64615b8b2b40fd40c2cbacedb Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 14 Apr 2020 16:05:18 +0300 Subject: [PATCH] .circleci: count coverage only for cli/ and pkg/ examples/ contain only smart-contract examples and is here for illustrative purposes. --- .circleci/config.yml | 2 +- .travis.yml | 2 +- Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cb810905a..a465fd97a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -94,7 +94,7 @@ jobs: - run: git submodule sync - run: git submodule update --init - gomod - - run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=all + - run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/... - codecov/upload: file: coverage.txt diff --git a/.travis.yml b/.travis.yml index c6c715776..1efe14318 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ install: - go mod tidy -v script: - golint -set_exit_status ./... - - go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=all ./... + - go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg/...,./cli/... ./... after_success: - bash <(curl -s https://codecov.io/bash) matrix: diff --git a/Makefile b/Makefile index 8d422d062..50c944628 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ fmt: @gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/") cover: - @go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=all + @go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg/...,./cli/... @go tool cover -html=coverage.txt -o coverage.html # --- Environment ---