gsave/.drone.yml
2020-10-19 17:40:40 +02:00

38 lines
614 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: unit-test
image: golang
volumes:
- name: cache
path: /go
commands:
- go mod download
- go test -coverprofile=coverage.out -covermode=count ./...
- go tool cover -html=coverage.out -o coverage.html
- go tool cover -func=coverage.out | grep total
- name: race-test
image: golang
volumes:
- name: cache
path: /go
commands:
- go mod download
- go test -race -short ./...
- name: build
image: golang
volumes:
- name: cache
path: /go
commands:
- go mod download
- go build
volumes:
- name: cache
temp: {}