From 57e8df65b6b6e2199d44f22266b3544c92543b64 Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Wed, 15 Jan 2020 20:43:42 -0800 Subject: [PATCH] Added CI --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..405834a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: golang:alpine + +variables: + GO111MODULE: "on" + CGO_ENABLED: 0 + +before_script: + - apk add git + +stages: + - test + +unit_test: + stage: test + script: + - go test ./... + +integration_test: + stage: test + only: + variables: + - BOT_TOKEN + script: + - go test -tags integration ./... +