summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorMura Li <2606021+typeless@users.noreply.github.com>2021-08-26 16:50:04 +0800
committerGitHub <noreply@github.com>2021-08-26 16:50:04 +0800
commitb60e81405582a358eae6adacd6f6cb703975206f (patch)
tree89e3eeaab0496ae82de20c368363daed08940a39 /.drone.yml
parentc446901a5db66810d49347c30d3b9aa047992fad (diff)
downloadgitea-b60e81405582a358eae6adacd6f6cb703975206f.tar.gz
gitea-b60e81405582a358eae6adacd6f6cb703975206f.zip
Enable race detector for CI (#1441)
* Enable race detector by default Set RACE_ENABLED=0 to disable it when release * Disable race detector for release builds * use `true` * fix * debug issue * fix * verbose * clean * Fix wrong merge * Fix coverage merge Co-authored-by: Mura Li <typeless@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 26726873b9..62c0366406 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -214,6 +214,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify
+ RACE_ENABLED: true
GITHUB_READ_TOKEN:
from_secret: github_read_token
@@ -236,6 +237,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata gogit sqlite sqlite_unlock_notify
+ RACE_ENABLED: true
GITHUB_READ_TOKEN:
from_secret: github_read_token
@@ -246,6 +248,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata
+ RACE_ENABLED: true
TEST_LDAP: 1
USE_REPO_TEST_DIR: 1
TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200"
@@ -259,6 +262,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata
+ RACE_ENABLED: true
TEST_LDAP: 1
USE_REPO_TEST_DIR: 1
depends_on:
@@ -271,6 +275,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata
+ RACE_ENABLED: true
TEST_LDAP: 1
USE_REPO_TEST_DIR: 1
depends_on:
@@ -366,6 +371,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata gogit sqlite sqlite_unlock_notify
+ RACE_ENABLED: true
TEST_TAGS: gogit sqlite sqlite_unlock_notify
USE_REPO_TEST_DIR: 1
depends_on:
@@ -378,6 +384,7 @@ steps:
environment:
GOPROXY: off
TAGS: bindata gogit
+ RACE_ENABLED: true
TEST_TAGS: gogit
TEST_LDAP: 1
USE_REPO_TEST_DIR: 1