mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-09-12 05:06:28 +00:00
27 lines
378 B
YAML
27 lines
378 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:
|
|
# Timeout test after 120 seconds (2 minutes)
|
|
- timeout 120 go test -tags integration -v ./...
|
|
|