summary refs log tree commit diff stats
path: root/build/ci
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-09 02:44:57 +0530
committerAndinus <andinus@nand.sh>2020-04-09 02:44:57 +0530
commitd5b95cbec72d377dfce806b5aba4c9b0993ad185 (patch)
treed567aad2a7ad09821c29f65401d9269593beb08e /build/ci
parent72b3740cd3390b3c2f1faf1a5a628dfd63807444 (diff)
downloadgrus-d5b95cbec72d377dfce806b5aba4c9b0993ad185.tar.gz
Add drone ci config
Diffstat (limited to 'build/ci')
-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..fc809dd
--- /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
+
+- name: linux-amd64
+  image: golang:1.13
+  environment:
+    GOARCH: amd64
+    GOOS: linux
+  commands:
+    - go build
+
+- name: darwin-amd64
+  image: golang:1.13
+  environment:
+    GOARCH: amd64
+    GOOS: darwin
+  commands:
+    - go build