From 4c3a50166bf0f78ce89459c352cc1c6536a8b96d Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Sat, 29 Nov 2025 20:23:02 +0100 Subject: chore: make language folders snake_case --- 2024/ocaml/Taskfile.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 2024/ocaml/Taskfile.yml (limited to '2024/ocaml/Taskfile.yml') diff --git a/2024/ocaml/Taskfile.yml b/2024/ocaml/Taskfile.yml new file mode 100644 index 0000000..1d8a89e --- /dev/null +++ b/2024/ocaml/Taskfile.yml @@ -0,0 +1,56 @@ +# https://taskfile.dev + +version: "3" +vars: + PROJECT_NAME: AoC_2024 +tasks: + default: + desc: Prints this message + cmds: + - cmd: task --list-all + build:doc: + desc: Builds documentation using ocamldoc + preconditions: + - which ocamldoc + cmds: + - cmd: ocamldoc -html -d docs bin/main.ml + silent: true + build: + desc: Builds the project + preconditions: + - which dune + cmds: + - cmd: dune build + test: + desc: Runs the tests in the 'tests' directory + ignore_error: true + env: + OUNIT_CI: true + preconditions: + - which dune + deps: + - task: build + cmds: + - cmd: dune test {{.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: + - which dune + deps: + - task: build + cmds: + - cmd: dune test --watch {{.CLI_ARGS}} + run: + desc: Runs the project + preconditions: + - which dune + deps: + - task: build + cmds: + - cmd: dune exec {{.PROJECT_NAME}} -- cgit v1.2.3