Skip to content

Commit

Permalink
build: add codecov to CircleCI tests
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Dec 1, 2020
1 parent d7a8f8b commit 118e707
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
14 changes: 10 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
7 changes: 2 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/...

0 comments on commit 118e707

Please sign in to comment.