hybridgroup.gobot/.circleci/config.yml

31 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

jobs:
build:
docker:
- image: cimg/go:1.19
# Since switch to cimg, the GOPATH has been changed from /go to $HOME/go.
# The latter will expand to the full path of /home/circleci/go.
# On first run, this change may affect caching and some other commands if
# you dont correct the page in your config.
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/circleci-images
# - image: cimg/postgres:14.5.0
# For more information, please read https://github.com/CircleCI-Public/cimg-go/blob/main/README.md
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)