gobot.io/x/gobot@v1.16.0/.circleci/config.yml (about)

     1  version: 2
     2  jobs:
     3    build:
     4      docker:
     5        # specify the version
     6        - image: circleci/golang:1.15
     7  
     8        # Specify service dependencies here if necessary
     9        # CircleCI maintains a library of pre-built images
    10        # documented at https://circleci.com/docs/2.0/circleci-images/
    11        # - image: circleci/postgres:9.4
    12  
    13      working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
    14      steps:
    15        - checkout
    16        - run:
    17            name: Core and drivers tests
    18            command: go test -v -cpu=2 -coverprofile=coverage.txt -covermode=atomic . ./drivers/...
    19        - run:
    20            name: Firmata tests
    21            command: go test -v -cpu=2 ./platforms/firmata/...
    22        - run:
    23            name: Code coverage
    24            command: | 
    25              bash <(curl -s https://codecov.io/bash)