47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
version: 2
|
|
jobs:
|
|
release:
|
|
docker:
|
|
- image: circleci/golang:1.13
|
|
working_directory: /go/src/github.com/d5/tegno
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- go-mod-v1-{{ checksum "go.sum" }}
|
|
- run: curl -sL https://git.io/goreleaser | bash
|
|
- save_cache:
|
|
key: go-mod-v1-{{ checksum "go.sum" }}
|
|
paths:
|
|
- "/go/pkg/mod"
|
|
test:
|
|
docker:
|
|
- image: circleci/golang:1.13
|
|
working_directory: /go/src/github.com/d5/tegno
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- go-mod-v1-{{ checksum "go.sum" }}
|
|
- run: go get -u golang.org/x/lint/golint
|
|
- run: make test
|
|
- save_cache:
|
|
key: go-mod-v1-{{ checksum "go.sum" }}
|
|
paths:
|
|
- "/go/pkg/mod"
|
|
workflows:
|
|
version: 2
|
|
test:
|
|
jobs:
|
|
- test:
|
|
filters:
|
|
tags:
|
|
ignore: /.*/
|
|
release:
|
|
jobs:
|
|
- release:
|
|
filters:
|
|
branches:
|
|
ignore: /.*/
|
|
tags:
|
|
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
|