mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-08 21:17:51 +00:00
Added CI
This commit is contained in:
parent
ef0dd9beef
commit
57e8df65b6
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -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 ./...
|
||||
|
Loading…
Reference in a new issue