blob: b562b3a3b17669a5f1b32d9e0cac344ad898a9c2 (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
|
# https://taskfile.dev
version: "3"
tasks:
default:
desc: Prints this message
cmds:
- cmd: task --list-all
docs:
desc: Builds documentation using ocamldoc
preconditions:
- command -v ocamldoc
cmds:
- cmd: ocamldoc -html -d docs bin/main.ml
silent: true
test:
desc: Runs the tests in the 'tests' directory
ignore_error: true
env:
OUNIT_CI: true
preconditions:
- command -v dune
deps:
- task: build
cmds:
- cmd: dune runtest {{.CLI_ARGS}}
test:watch:
desc: Continuously runs the tests in the 'tests' directory
ignore_error: true
sources:
- lib/**/*.ml
- test/**/*.ml
env:
OUNIT_CI: true
preconditions:
- command -v dune
deps:
- task: build
cmds:
- cmd: dune runtest --watch {{.CLI_ARGS}}
build:
desc: Builds the project
preconditions:
- command -v dune
cmds:
- cmd: dune build
build:release:
desc: Builds a release version the project
preconditions:
- command -v dune
cmds:
- cmd: dune build --release
run:
desc: Runs the project
preconditions:
- command -v dune
deps:
- task: build
cmds:
- cmd: dune exec -- ./bin/main.exe {{.CLI_ARGS}}
|