github.com/bilus/oya@v0.0.3-0.20190301162104-da4acbd394c6/.circleci/config.yml (about)

     1  version: 2
     2  jobs:
     3    build:
     4      docker:
     5        - image: circleci/golang:1.11.4
     6  
     7      steps:
     8        - checkout
     9        - restore_cache:
    10            keys:
    11              - v1-pkg-cache
    12        - run: go version
    13        - run: go build oya.go
    14        - run: ./oya run develop
    15        - save_cache:
    16            key: v1-pkg-cache
    17            paths:
    18              - "/go/pkg"
    19        - run: ./oya run testKeysImport
    20        - run: ./oya run test -t "~@nocircleci"
    21        - run: ./oya run testKeysRemove
    22  
    23    release:
    24      docker:
    25        - image: circleci/golang:1.11.4
    26      steps:
    27        - checkout
    28        - add_ssh_keys
    29        - restore_cache:
    30            keys:
    31              - v1-pkg-cache
    32        - run: go run oya.go run release
    33        - save_cache:
    34            key: v1-pkg-cache
    35            paths:
    36              - "/go/pkg"
    37  
    38  workflows:
    39    version: 2
    40    build-release:
    41      jobs:
    42        - build:
    43            filters:  # required since `release` has tag filters AND requires `build`
    44              tags:
    45                only: /.*/
    46        - release:
    47            requires:
    48              - build
    49            filters:
    50              tags:
    51                only: /v[0-9]+(\.[0-9]+)*/
    52              branches:
    53                ignore: /.*/