-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
51 lines (42 loc) · 973 Bytes
/
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
# https://taskfile.dev
version: '3'
includes:
build: ./Taskfile-build.yml
dotenv: [".clean.env"]
tasks:
default:
cmds:
- task -l
build:
desc: Build all binaries
cmds:
- task: build:build
test:
desc: Run all tests
cmds:
- task: build:test
qordled:
desc: Run qordled
deps: [build]
env:
BASE_URL: http://localhost:8091/qordle
cmds:
- "{{.DIST}}/qordled --port 8091"
hyperfine:
desc: Run hyperfine
deps: [build]
vars:
binaries:
"{{.DIST}}/qordle,/opt/homebrew/bin/qordle"
options:
-S -w solutions -w possible
secrets:
mound board brain lills qwert 12345
cmds:
- hyperfine -N -w 3 --runs=100 -L binary {{.binaries}} "{binary} play {{.options}} {{.secrets}}"
regression:
desc: Run regression test
deps: [build]
cmds:
- "{{.ROOT_DIR}}/bin/regression.zsh {{.CLI_ARGS}}"
- "{{.ROOT_DIR}}/bin/analyze.zsh"