1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-04 22:14:30 +00:00
arikawa/.gitlab-ci.yml

29 lines
460 B
YAML

image: golang:alpine
variables:
GO111MODULE: "on"
CGO_ENABLED: "0"
before_script:
- apk add git
stages:
- test
unit_test:
stage: test
script:
- go test -tags unit -v ./...
integration_test:
stage: test
only:
variables:
- $BOT_TOKEN
script:
# go get first, so it doesn't count towards the timeout.
- go get ./...
# Timeout test after 120 seconds (2 minutes)
- timeout 120 go test -tags integration -v ./...