From 118e707ab38da5d98471506064acb9303e9b8633 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Mon, 30 Nov 2020 23:10:09 +0100 Subject: [PATCH] build: add codecov to CircleCI tests Signed-off-by: deadprogram --- .circleci/config.yml | 14 ++++++++++---- appveyor.yml | 7 ++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 102e0009..b9ac9b01 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,13 @@ jobs: working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}} steps: - checkout - - run: go test -v -cpu=2 . - - run: go test -v -cpu=2 ./drivers/aio - - run: go test -v -cpu=2 ./drivers/gpio - - run: go test -v -cpu=2 ./drivers/i2c + - run: + name: Core and drivers tests + command: go test -v -cpu=2 -coverprofile=coverage.txt -covermode=atomic . ./drivers/... + - run: + name: Firmata tests + command: go test -v -cpu=2 ./platforms/firmata/... + - run: + name: Code coverage + command: | + bash <(curl -s https://codecov.io/bash) diff --git a/appveyor.yml b/appveyor.yml index 981c1df6..a14f8999 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -21,8 +21,5 @@ install: - go get github.com/stretchr/testify build_script: - - go test -v -cpu=2 . - - go test -v -cpu=2 ./drivers/aio - - go test -v -cpu=2 ./drivers/gpio - - go test -v -cpu=2 ./drivers/i2c - - go test -v -cpu=2 ./platforms/firmata/... + - go test -v -cpu=2 . ./drivers/... + - go test -v -cpu=2 ./platforms/firmata/...