From 5fa527d721cc8dbbf536be41523c58aa00714be0 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 20 Jan 2021 18:44:29 -0800 Subject: [PATCH] ci: enable data race detector Signed-off-by: Andrea Luzzardi --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f88b247e..eb9ff7c8 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,13 @@ generate: dagger: generate go build -o ./cmd/dagger/ ./cmd/dagger/ +.PHONY: dagger +dagger-debug: generate + go build -race -o ./cmd/dagger/dagger-debug ./cmd/dagger/ + .PHONY: test test: - go test -v ./... + go test -race -v ./... .PHONY: cuefmt cuefmt: @@ -24,8 +28,8 @@ lint: generate cuefmt @test -z "$$(git status -s . | grep -e "^ M" | grep gen.go | cut -d ' ' -f3 | tee /dev/stderr)" .PHONY: integration -integration: dagger +integration: dagger-debug # Self-diagnostics ./examples/tests/test-test.sh 2>/dev/null # Actual integration tests - ./examples/tests/test.sh all + DAGGER_BINARY="./cmd/dagger/dagger-debug" time ./examples/tests/test.sh all