summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-12-26 16:38:29 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-12-26 16:38:29 -0500
commita19eb2afbd4c87f7361942eedd7bdc80f3e225cf (patch)
tree26bd6a37866a5f3172843ed228f158909e74004b
parent1d6075cae96d80908924362567748d550603ec61 (diff)
Makefile: update `peach` and `test` targets
Build and test with `-race` flag on.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6dd8753..b781683 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ PKGS=${MOD}/cache ${MOD}/client ${MOD}/nws ${MOD}/photon ${MOD}/time
CSS=static/peach.min.css
peach: vet fix fmt ${CSS}
- go build ${BUILD_OPTS}
+ go build -race ${BUILD_OPTS}
fmt:
go fmt ${MOD} ${PKGS}
@@ -21,7 +21,7 @@ vet:
.PHONY: vet
test:
- go test ${PKGS} ${ARGS}
+ go test -race ${PKGS} ${ARGS}
.PHONY: test
${CSS}: static/peach.css