ci: enable data race detector
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
72c0851e01
commit
5fa527d721
10
Makefile
10
Makefile
@ -9,9 +9,13 @@ generate:
|
|||||||
dagger: generate
|
dagger: generate
|
||||||
go build -o ./cmd/dagger/ ./cmd/dagger/
|
go build -o ./cmd/dagger/ ./cmd/dagger/
|
||||||
|
|
||||||
|
.PHONY: dagger
|
||||||
|
dagger-debug: generate
|
||||||
|
go build -race -o ./cmd/dagger/dagger-debug ./cmd/dagger/
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
go test -v ./...
|
go test -race -v ./...
|
||||||
|
|
||||||
.PHONY: cuefmt
|
.PHONY: cuefmt
|
||||||
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)"
|
@test -z "$$(git status -s . | grep -e "^ M" | grep gen.go | cut -d ' ' -f3 | tee /dev/stderr)"
|
||||||
|
|
||||||
.PHONY: integration
|
.PHONY: integration
|
||||||
integration: dagger
|
integration: dagger-debug
|
||||||
# Self-diagnostics
|
# Self-diagnostics
|
||||||
./examples/tests/test-test.sh 2>/dev/null
|
./examples/tests/test-test.sh 2>/dev/null
|
||||||
# Actual integration tests
|
# Actual integration tests
|
||||||
./examples/tests/test.sh all
|
DAGGER_BINARY="./cmd/dagger/dagger-debug" time ./examples/tests/test.sh all
|
||||||
|
Reference in New Issue
Block a user