Add Alpine package test shell

This commit is contained in:
Joachim Schlöffel
2026-06-07 22:29:58 +02:00
parent 6ef5cae2b2
commit 772eba1e20
3 changed files with 70 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ mise run apk:checksum
mise run apk:lint
mise run apk:packages
mise run apk:smoke
mise run apk:test-shell
mise run apk:publish-check
mise run apk:shell
mise run apk:clean
@@ -53,11 +54,16 @@ cached in `.cache/abuild/` and `.cache/apk-distfiles/`.
```sh
mise run apk:smoke
mise run apk:test-shell
mise run apk:publish-check
```
`apk:publish-check` runs APKBUILD linting, rebuilds configured architectures,
lists package metadata, and installs the built packages in an Alpine container.
`apk:test-shell` builds the selected architecture, installs the local package
set in an Alpine container, and opens a shell. Use `SKIP_BUILD=1` to reuse an
existing local repository. Set `TEST_SHELL_TIMEOUT` to adjust the timeout for
`apk update` and `apk add` inside the test container.
Install from the local repo with the base package plus the role-specific OpenRC
subpackage you need: