From 5ffb0ebf53b499262d6401096860ddd8a9ff44f8 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sat, 19 Oct 2019 02:21:05 +0400 Subject: [PATCH] Add Drone CI config --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..314d018 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +type: docker +name: build + +steps: + - name: lint + image: golangci/golangci-lint:latest + environment: + CGO_ENABLED: 0 + commands: + - golangci-lint run + - name: test-1.13 + image: golang:1.13.1-alpine + environment: + CGO_ENABLED: 0 + commands: + - go test -cover -test.v . + - name: test-1.12 + image: golang:1.12.10-alpine + environment: + CGO_ENABLED: 0 + GO111MODULE: on + commands: + - go test -cover -test.v . \ No newline at end of file