github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/.circleci/config.yml (about)

     1  ---
     2  version: 2
     3  
     4  jobs:
     5    build:
     6      working_directory: /go/src/helm.sh/helm
     7      parallelism: 3
     8      docker:
     9        - image: circleci/golang:1.12
    10  
    11      environment:
    12        - GOCACHE: "/tmp/go/cache"
    13  
    14      steps:
    15        - checkout
    16        - restore_cache:
    17            key: gopkg-{{ checksum "Gopkg.lock" }}
    18        - restore_cache:
    19            keys:
    20              - build-cache-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}
    21        - run:
    22            name: test style
    23            command: make test-style
    24        - run:
    25            name: test
    26            command: make test-coverage
    27        - save_cache:
    28            key: gopkg-{{ checksum "Gopkg.lock" }}
    29            paths:
    30              - /go/src/helm.sh/helm/vendor
    31              - /go/pkg/dep
    32        - save_cache:
    33            key: build-cache-{{ .Environment.CIRCLE_BUILD_NUM }}
    34            paths:
    35              - /tmp/go/cache
    36        - deploy:
    37            name: deploy
    38            command: .circleci/deploy.sh
    39  
    40  workflows:
    41    version: 2
    42    build:
    43      jobs:
    44        - build:
    45            filters:
    46              tags:
    47                only: /.*/