valiwork/.drone.yml

37 lines
745 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: build
steps:
- name: lint
2021-11-20 01:48:55 +05:00
image: golangci/golangci-lint:v1.43.0
environment:
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
2021-11-20 01:48:55 +05:00
image: golang:1.17.3-alpine
environment:
CGO_ENABLED: 0
commands:
- go test -test.v ./...
- name: test-race
2021-11-20 01:48:55 +05:00
image: golang:1.17.3-stretch
commands:
- go test -race -test.v ./...
- name: benchmark
2021-11-20 01:48:55 +05:00
image: golang:1.17.3-alpine
environment:
CGO_ENABLED: 0
commands:
- go test -benchmem -run=^$ go.dev.pztrn.name/valiwork -bench .
- name: benchmark-race
2021-11-20 01:48:55 +05:00
image: golang:1.17.3-stretch
commands:
- go test -benchmem -run=^$ go.dev.pztrn.name/valiwork -race -bench .