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}}
|
||||
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)
|
||||
|
|
|
@ -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/...
|
||||
|
|
Loading…
Reference in New Issue