Commit fc2819a8 authored by endk-mirror-svc's avatar endk-mirror-svc

Mored fixes t CI

parent 1398d5df
Pipeline #24433153 passed with stages
in 1 minute 41 seconds
cover
coverage.out
*.swp
......@@ -16,7 +16,7 @@ before_script:
- mkdir -p /go/src/gitlab.com/MadsRC /go/src/_/builds
- cp -r $CI_PROJECT_DIR /go/src/gitlab.com/MadsRC/go-eds
- ln -s /go/src/gitlab.com/MadsRC /go/src/_/builds/MadsRC
- make dep
- go get -u golang.org/x/lint/golint
unit_tests:
stage: test
......@@ -28,11 +28,6 @@ race_detector:
script:
- make race
memory_sanitizer:
stage: test
script:
- make msan
code_coverage:
stage: test
script:
......
......@@ -3,7 +3,7 @@ PKG := "gitlab.com/MadsRC/$(PROJECT_NAME)"
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)
.PHONY: all dep build clean test coverage lint
.PHONY: all build clean test coverage lint
all: build
......@@ -13,12 +13,9 @@ lint: ## Lint the files
test: ## Run unittests
@go test -short ${PKG_LIST}
race: dep ## Run data race detector
race: ## Run data race detector
@go test -race -short ${PKG_LIST}
msan: dep ## Run memory sanitizer
@go test -msan -short ${PKG_LIST}
coverage: ## Generate global code coverage report
go test -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment