From fe1f7aa20168854a40d5d406194264a9c2498c87 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Mon, 16 Aug 2021 19:23:32 -0700 Subject: [PATCH] CI: Increase testing time --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1195ffb..6f10e7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,20 +24,20 @@ }, "unit_test": { "stage": "test", - "timeout": "2m", # 2 minutes + "timeout": "4m", # 4 minutes # Don't run the test if we have a $BOT_TOKEN, because # integration_test will run instead. "except": { "variables": [ "$BOT_TOKEN" ] }, "script": [ - "go test -coverprofile $COV -tags unitonly -race ./...", + "go test -coverprofile $COV -tags unitonly -v -race ./...", "go tool cover -func $COV" ] }, "integration_test": { "stage": "test", - "timeout": "5m", # 5 minutes + "timeout": "8m", # 8 minutes # Run the test only if we have $BOT_TOKEN, else fallback to unit # tests. "only": { @@ -47,7 +47,7 @@ "go get ./...", # Test this package along with dismock. "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 tool cover -func $COV" ]