hybridgroup.gobot/.circleci/config.yml

26 lines
792 B
YAML
Raw Normal View History

version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.15
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps:
- checkout
- 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)