Compare commits
1
Commits
next
...
eb67f2b417
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb67f2b417 |
+5
-2
@@ -32,9 +32,12 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN mkdir -p web/dist && touch web/dist/index.html web/dist/style.css web/dist/app.js
|
RUN mkdir -p web/dist && touch web/dist/index.html web/dist/style.css web/dist/app.js
|
||||||
# -p 4 because test runs on a shared build host cap their parallelism.
|
# -p 4 because test runs on a shared build host cap their parallelism.
|
||||||
RUN go test -p 4 -timeout 90s -race -cover ./... || \
|
# -race also turns on Go's unsafe-pointer checks (checkptr) in every
|
||||||
|
# package. In modernc.org, SQLite machine-translated from C, they doubled
|
||||||
|
# the test time, so they are off there and stay on everywhere else.
|
||||||
|
RUN go test -p 4 -timeout 90s -race -gcflags='modernc.org/...=-d=checkptr=0' -cover ./... || \
|
||||||
{ echo "--- Rerunning with -v for details ---"; \
|
{ echo "--- Rerunning with -v for details ---"; \
|
||||||
go test -p 4 -timeout 90s -race -v ./...; exit 1; }
|
go test -p 4 -timeout 90s -race -gcflags='modernc.org/...=-d=checkptr=0' -v ./...; exit 1; }
|
||||||
|
|
||||||
# Build stage. Nothing is wanted from either phase above; the copies
|
# Build stage. Nothing is wanted from either phase above; the copies
|
||||||
# are what make BuildKit build them first, so this stage cannot run
|
# are what make BuildKit build them first, so this stage cannot run
|
||||||
|
|||||||
Reference in New Issue
Block a user