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 ./... +