-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTaskfile.yml
57 lines (46 loc) · 1.1 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3'
output: prefixed
vars:
# GOSIM: go run github.com/jellevandenhooff/gosim/cmd/gosim
GOSIM: $(pwd)/.gosim/gosimtool
SIMPACKAGES: ./internal/tests/behavior ./nemesis
tasks:
fix-fmt:
cmds:
- .ci/gofmt fix
check-fmt:
cmds:
- .ci/gofmt check
go-generate:
cmds:
- go generate ./...
gosim-tool:
run: once
cmds:
- mkdir -p ./.gosim && go build -o ./.gosim/gosimtool ./cmd/gosim
gosim-prepare-selftest:
run: once
cmds:
- "{{.GOSIM}} prepare-selftest"
deps:
- gosim-tool
go-test:
cmds:
- "{{.GOSIM}} build-tests {{.SIMPACKAGES}}"
- go test -ldflags=-checklinkname=0 -tags=linkname ./...
deps:
- gosim-tool
- gosim-prepare-selftest
go-race-test:
cmds:
- "{{.GOSIM}} build-tests -race {{.SIMPACKAGES}} ./internal/tests/race/testdata"
# todo: get rid of this janky thing???
- go test -ldflags=-checklinkname=0 -tags=linkname -race ./...
deps:
- gosim-tool
- gosim-prepare-selftest
test:
deps:
- check-fmt
- go-test
- go-race-test