1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-06-13 05:11:21 +00:00

Tweaks to tests and CI

This commit is contained in:
diamondburned (Forefront) 2020-01-20 03:15:41 -08:00
parent d3ccce4a3a
commit ff0bc7b98b
7 changed files with 15 additions and 2 deletions

View file

@ -13,7 +13,7 @@ stages:
unit_test:
stage: test
script:
- go test -v ./...
- go test -tags unit -v ./...
integration_test:
stage: test
@ -21,5 +21,6 @@ integration_test:
variables:
- $BOT_TOKEN
script:
- go test -tags integration -v ./...
# Timeout test after 120 seconds (2 minutes)
- timeout 120 go test -tags integration -v ./...

View file

@ -1,3 +1,5 @@
// +build unit
package rate
import "testing"

View file

@ -1,3 +1,5 @@
// +build unit
package rate
import (

View file

@ -1,3 +1,5 @@
// +build unit
package bot
import (

View file

@ -1,3 +1,5 @@
// +build unit
package bot
import "testing"

View file

@ -1,3 +1,5 @@
// +build unit
package bot
import "testing"

View file

@ -1,3 +1,5 @@
// +build unit
package handler
import (