diff options
Diffstat (limited to 'mise.toml')
| -rw-r--r-- | mise.toml | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -25,6 +25,27 @@ luarocks --lua-version 5.4 --tree .rocks install luv luarocks --lua-version 5.4 --tree .rocks install dkjson """ +# `mise run e2e` drives the REAL panto binary against the REAL rock through a +# scripted provider protocol (see e2e/run.lua). It is deliberately not a +# dependency of `check`: it needs the sibling pantograph checkout built, which a +# rock-only contributor has no reason to have. Point PANTO_REPO elsewhere, or +# PANTO_BIN straight at a binary, to skip the build. +[tasks.e2e] +description = "End-to-end: the real panto binary, the real rock, a scripted provider" +dir = "{{config_root}}" +run = """ +set -e +PANTO_REPO="${PANTO_REPO:-$(cd .. && pwd)/pantograph}" +if [ -z "${PANTO_BIN:-}" ] && [ -d "$PANTO_REPO" ]; then + (cd "$PANTO_REPO" && mise exec -- zig build) + PANTO_BIN="$PANTO_REPO/zig-out/bin/panto" +fi +# The rock's lazily required dependencies (lyaml, toml2lua, dkjson) are handed +# to the embedded interpreter from this tree; see e2e/fixture.lua. +[ -d .rocks ] || mise run deps +PANTO_BIN="$PANTO_BIN" lua e2e/run.lua +""" + [tasks.check] description = "Run the specs against ./.rocks" dir = "{{config_root}}" |
