From 53412182e78014bc7dcf289e7a0948f65c52d4da Mon Sep 17 00:00:00 2001 From: Hamza Ali Date: Thu, 5 Sep 2019 08:54:21 +0700 Subject: [PATCH] Drone integration and Go module setup --- .drone.yml | 15 +++++++++++++++ go.mod | 3 +++ main.go | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 .drone.yml create mode 100644 go.mod create mode 100644 main.go diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d11a953 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +kind: pipeline +name: Build +steps: +- name: Build + image: golang:1.12 + commands: + - go build . +- name: Unit Tests + image: golang:1.12 + commands: + - go test -tag=unit . +- name: Integration Tests + image: golang:1.12 + commands: + - go test -tag=integration . diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..173cd9a --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module gitea.teamortix.com/Team-Ortix/JISQueueing + +go 1.12 diff --git a/main.go b/main.go new file mode 100644 index 0000000..a297bc0 --- /dev/null +++ b/main.go @@ -0,0 +1,5 @@ +package main + +func main() { + //TODO: Populate with flags and calls to `http/` +}