mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-24 13:48:49 +08:00
build: add codecov to CircleCI tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
d7a8f8b825
commit
118e707ab3
@ -13,7 +13,13 @@ jobs:
|
|||||||
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
|
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: go test -v -cpu=2 .
|
- run:
|
||||||
- run: go test -v -cpu=2 ./drivers/aio
|
name: Core and drivers tests
|
||||||
- run: go test -v -cpu=2 ./drivers/gpio
|
command: go test -v -cpu=2 -coverprofile=coverage.txt -covermode=atomic . ./drivers/...
|
||||||
- run: go test -v -cpu=2 ./drivers/i2c
|
- run:
|
||||||
|
name: Firmata tests
|
||||||
|
command: go test -v -cpu=2 ./platforms/firmata/...
|
||||||
|
- run:
|
||||||
|
name: Code coverage
|
||||||
|
command: |
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
@ -21,8 +21,5 @@ install:
|
|||||||
- go get github.com/stretchr/testify
|
- go get github.com/stretchr/testify
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- go test -v -cpu=2 .
|
- go test -v -cpu=2 . ./drivers/...
|
||||||
- go test -v -cpu=2 ./drivers/aio
|
- go test -v -cpu=2 ./platforms/firmata/...
|
||||||
- go test -v -cpu=2 ./drivers/gpio
|
|
||||||
- go test -v -cpu=2 ./drivers/i2c
|
|
||||||
- go test -v -cpu=2 ./platforms/firmata/...
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user