* 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>tags/v1.16.0-rc1
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata sqlite sqlite_unlock_notify | TAGS: bindata sqlite sqlite_unlock_notify | ||||
RACE_ENABLED: true | |||||
GITHUB_READ_TOKEN: | GITHUB_READ_TOKEN: | ||||
from_secret: github_read_token | from_secret: github_read_token | ||||
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata gogit sqlite sqlite_unlock_notify | TAGS: bindata gogit sqlite sqlite_unlock_notify | ||||
RACE_ENABLED: true | |||||
GITHUB_READ_TOKEN: | GITHUB_READ_TOKEN: | ||||
from_secret: github_read_token | from_secret: github_read_token | ||||
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata | TAGS: bindata | ||||
RACE_ENABLED: true | |||||
TEST_LDAP: 1 | TEST_LDAP: 1 | ||||
USE_REPO_TEST_DIR: 1 | USE_REPO_TEST_DIR: 1 | ||||
TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200" | TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200" | ||||
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata | TAGS: bindata | ||||
RACE_ENABLED: true | |||||
TEST_LDAP: 1 | TEST_LDAP: 1 | ||||
USE_REPO_TEST_DIR: 1 | USE_REPO_TEST_DIR: 1 | ||||
depends_on: | depends_on: | ||||
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata | TAGS: bindata | ||||
RACE_ENABLED: true | |||||
TEST_LDAP: 1 | TEST_LDAP: 1 | ||||
USE_REPO_TEST_DIR: 1 | USE_REPO_TEST_DIR: 1 | ||||
depends_on: | depends_on: | ||||
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata gogit sqlite sqlite_unlock_notify | TAGS: bindata gogit sqlite sqlite_unlock_notify | ||||
RACE_ENABLED: true | |||||
TEST_TAGS: gogit sqlite sqlite_unlock_notify | TEST_TAGS: gogit sqlite sqlite_unlock_notify | ||||
USE_REPO_TEST_DIR: 1 | USE_REPO_TEST_DIR: 1 | ||||
depends_on: | depends_on: | ||||
environment: | environment: | ||||
GOPROXY: off | GOPROXY: off | ||||
TAGS: bindata gogit | TAGS: bindata gogit | ||||
RACE_ENABLED: true | |||||
TEST_TAGS: gogit | TEST_TAGS: gogit | ||||
TEST_LDAP: 1 | TEST_LDAP: 1 | ||||
USE_REPO_TEST_DIR: 1 | USE_REPO_TEST_DIR: 1 |
.PHONY: coverage | .PHONY: coverage | ||||
coverage: | coverage: | ||||
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all | |||||
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out coverage.out > coverage.all | |||||
.PHONY: unit-test-coverage | .PHONY: unit-test-coverage | ||||
unit-test-coverage: | unit-test-coverage: |
for _, file := range flag.Args() { | for _, file := range flag.Args() { | ||||
profiles, err := cover.ParseProfiles(file) | profiles, err := cover.ParseProfiles(file) | ||||
if err != nil { | if err != nil { | ||||
log.Fatalf("failed to parse profiles: %v", err) | |||||
log.Fatalf("failed to parse profile '%s': %v", file, err) | |||||
} | } | ||||
for _, p := range profiles { | for _, p := range profiles { | ||||
merged = addProfile(merged, p) | merged = addProfile(merged, p) |