2019-10-15 21:20:49 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-06-18 00:33:09 +05:00
|
|
|
name: test-and-lint
|
2019-10-15 21:20:49 +05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
|
|
|
image: golangci/golangci-lint:latest
|
|
|
|
environment:
|
2020-06-18 00:33:09 +05:00
|
|
|
CGO_ENABLED: "0"
|
2019-10-15 21:20:49 +05:00
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
2020-06-18 00:33:09 +05:00
|
|
|
- name: test-1.14
|
|
|
|
image: golang:1.14.4-alpine
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: "0"
|
|
|
|
commands:
|
|
|
|
- go test -cover -test.v .
|
|
|
|
|
2019-10-15 21:20:49 +05:00
|
|
|
- name: test-1.13
|
2020-06-18 00:33:09 +05:00
|
|
|
image: golang:1.13.12-alpine
|
2019-10-15 21:20:49 +05:00
|
|
|
environment:
|
2020-06-18 00:33:09 +05:00
|
|
|
CGO_ENABLED: "0"
|
2019-10-15 21:20:49 +05:00
|
|
|
commands:
|
|
|
|
- go test -cover -test.v .
|
2019-12-22 01:26:25 +05:00
|
|
|
|