Add disabling tag no_docker to some go tests

This commit is contained in:
Mikhail f. Shiryaev 2022-06-30 23:20:24 +02:00
parent 7388b6fb55
commit 664d43e348
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
5 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,9 @@ vendor: ## Copy of all packages needed to support builds and tests in the vendor
test: ## Run the tests of the project test: ## Run the tests of the project
CLICKHOUSE_VERSION=$(CLICKHOUSE_VERSION) $(GOTEST) -v -race `go list ./... | grep -v ./internal/platform/test` CLICKHOUSE_VERSION=$(CLICKHOUSE_VERSION) $(GOTEST) -v -race `go list ./... | grep -v ./internal/platform/test`
test-no-docker: ## Don't run tests depending on dockerd
CLICKHOUSE_VERSION=$(CLICKHOUSE_VERSION) $(GOTEST) -v -race -tags no_docker `go list ./... | grep -v ./internal/platform/test`
lint-go: ## Use golintci-lint lint-go: ## Use golintci-lint
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:latest-alpine golangci-lint run docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:latest-alpine golangci-lint run

View File

@ -1,3 +1,5 @@
//go:build !no_docker
package database_test package database_test
import ( import (

View File

@ -1,3 +1,5 @@
//go:build !no_docker
package platform_test package platform_test
import ( import (

View File

@ -1,3 +1,5 @@
//go:build !no_docker
package utils_test package utils_test
import ( import (

View File

@ -1,3 +1,5 @@
//go:build !no_docker
package internal_test package internal_test
import ( import (