mirror of https://github.com/docker/compose.git
ci: use CGO for tests to enable race detector
``` go: -race requires cgo; enable cgo by setting CGO_ENABLED=1 ``` We're explicitly using CGO on macOS now for FSEvents support and purposefully NOT using CGO on other platforms since we don't need it. The race detector (`-race`) requires it, however, so for the e2e make task, it should alway be on. Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
eb1c798912
commit
15f7104cd3
2
Makefile
2
Makefile
|
@ -61,7 +61,7 @@ install: binary
|
|||
|
||||
.PHONY: e2e-compose
|
||||
e2e-compose: ## Run end to end local tests in plugin mode. Set E2E_TEST=TestName to run a single test
|
||||
go test $(TEST_FLAGS) $(TEST_COVERAGE_FLAGS) -count=1 ./pkg/e2e
|
||||
CGO_ENABLED=1 go test $(TEST_FLAGS) $(TEST_COVERAGE_FLAGS) -count=1 ./pkg/e2e
|
||||
|
||||
.PHONY: e2e-compose-standalone
|
||||
e2e-compose-standalone: ## Run End to end local tests in standalone mode. Set E2E_TEST=TestName to run a single test
|
||||
|
|
Loading…
Reference in New Issue