mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-23 13:06:42 +00:00
CI: Increase testing time
This commit is contained in:
parent
525e8d527b
commit
fe1f7aa201
|
@ -24,20 +24,20 @@
|
||||||
},
|
},
|
||||||
"unit_test": {
|
"unit_test": {
|
||||||
"stage": "test",
|
"stage": "test",
|
||||||
"timeout": "2m", # 2 minutes
|
"timeout": "4m", # 4 minutes
|
||||||
# Don't run the test if we have a $BOT_TOKEN, because
|
# Don't run the test if we have a $BOT_TOKEN, because
|
||||||
# integration_test will run instead.
|
# integration_test will run instead.
|
||||||
"except": {
|
"except": {
|
||||||
"variables": [ "$BOT_TOKEN" ]
|
"variables": [ "$BOT_TOKEN" ]
|
||||||
},
|
},
|
||||||
"script": [
|
"script": [
|
||||||
"go test -coverprofile $COV -tags unitonly -race ./...",
|
"go test -coverprofile $COV -tags unitonly -v -race ./...",
|
||||||
"go tool cover -func $COV"
|
"go tool cover -func $COV"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"integration_test": {
|
"integration_test": {
|
||||||
"stage": "test",
|
"stage": "test",
|
||||||
"timeout": "5m", # 5 minutes
|
"timeout": "8m", # 8 minutes
|
||||||
# Run the test only if we have $BOT_TOKEN, else fallback to unit
|
# Run the test only if we have $BOT_TOKEN, else fallback to unit
|
||||||
# tests.
|
# tests.
|
||||||
"only": {
|
"only": {
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
"go get ./...",
|
"go get ./...",
|
||||||
# Test this package along with dismock.
|
# Test this package along with dismock.
|
||||||
"go get $dismock@$dismock_v",
|
"go get $dismock@$dismock_v",
|
||||||
"go test -coverpkg $tested -coverprofile $COV -race ./... $dismock",
|
"go test -coverpkg $tested -coverprofile $COV -v -race ./... $dismock",
|
||||||
"go mod tidy",
|
"go mod tidy",
|
||||||
"go tool cover -func $COV"
|
"go tool cover -func $COV"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue