github.com/lunny/gop@v0.0.0-20190322013459-2be48bbe64f7/.circleci/config.yml (about)

     1  # Golang CircleCI 2.0 configuration file
     2  #
     3  # Check https://circleci.com/docs/2.0/language-go/ for more details
     4  version: 2
     5  jobs:
     6    build:
     7      docker:
     8        # specify the version
     9        - image: circleci/golang:1.8
    10        
    11        # Specify service dependencies here if necessary
    12        # CircleCI maintains a library of pre-built images
    13        # documented at https://circleci.com/docs/2.0/circleci-images/
    14        # - image: circleci/postgres:9.4
    15  
    16      #### TEMPLATE_NOTE: go expects specific checkout path representing url
    17      #### expecting it in the form of
    18      ####   /go/src/github.com/circleci/go-tool
    19      ####   /go/src/bitbucket.org/circleci/go-tool
    20      working_directory: /go/src/github.com/lunny/gop
    21      steps:
    22        - checkout
    23  
    24        # specify any bash command here prefixed with `run: `
    25        - run: go get -v -t -d ./...
    26        - run: go test ./cmd -v -race -coverprofile=coverage.txt -covermode=atomic
    27        - run: bash <(curl -s https://codecov.io/bash)