build: add codecov to CircleCI tests

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2020-11-30 23:10:09 +01:00 committed by Ron Evans
parent d7a8f8b825
commit 118e707ab3
2 changed files with 12 additions and 9 deletions

View File

@ -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)

View File

@ -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/...