summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-06 22:10:12 +0530
committerAndinus <andinus@nand.sh>2020-04-06 22:10:12 +0530
commit2e4e8910eb431d10340a29fa797cd0fc8fd4e2db (patch)
tree89646136ed420f4a7ee7a855eee8af75b7e862c0
parentd2340a2320d51a2aab1601bb9048559ac11b1ca5 (diff)
downloadgrus-2e4e8910eb431d10340a29fa797cd0fc8fd4e2db.tar.gz
Add drone ci config
-rw-r--r--build/ci/drone.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/build/ci/drone.yml b/build/ci/drone.yml
new file mode 100644
index 0000000..1bd3a07
--- /dev/null
+++ b/build/ci/drone.yml
@@ -0,0 +1,43 @@
+---
+kind: pipeline
+name: testing
+
+steps:
+- name: vet
+  image: golang:1.13
+  commands:
+    - go vet ./...
+
+- name: test
+  image: golang:1.13
+  commands:
+    - go test -v ./...
+
+---
+kind: pipeline
+name: build
+
+steps:
+- name: openbsd-amd64
+  image: golang:1.13
+  environment:
+    GOARCH: amd64
+    GOOS: openbsd
+  commands:
+    - go build ./cmd/grus
+
+- name: linux-amd64
+  image: golang:1.13
+  environment:
+    GOARCH: amd64
+    GOOS: linux
+  commands:
+    - go build ./cmd/grus
+
+- name: darwin-amd64
+  image: golang:1.13
+  environment:
+    GOARCH: amd64
+    GOOS: darwin
+  commands:
+    - go build ./cmd/grus