diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-05-30 19:47:46 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-05-30 19:47:46 +0200 |
| commit | 8721bb7cc49636f0ce803fa6c638c734489156da (patch) | |
| tree | 3ea03f36431ea37c397349a547e2a88c882158a1 | |
| parent | modules/system-info: Add last missing port information (diff) | |
| download | nixos-server-8721bb7cc49636f0ce803fa6c638c734489156da.zip | |
| -rwxr-xr-x | scripts/check.sh | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/scripts/check.sh b/scripts/check.sh index f152cbb..9f40c99 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -1,20 +1,38 @@ #! /usr/bin/env sh -# --log-format multiline-with-logs \ -nix build \ - --option max-jobs 1 \ - --print-out-paths --no-link \ - .#checks.x86_64-linux.atuin-sync \ - .#checks.x86_64-linux.back \ - .#checks.x86_64-linux.deploy-activate \ - .#checks.x86_64-linux.deploy-schema \ - .#checks.x86_64-linux.dns \ - .#checks.x86_64-linux.formatting \ - .#checks.x86_64-linux.git-server \ - .#checks.x86_64-linux.rust-motd \ - .#checks.x86_64-linux.sharkey \ - .#checks.x86_64-linux.sharkey-cpu \ - .#checks.x86_64-linux.taskchampion-sync -# .#checks.x86_64-linux.email-dns \ -# .#checks.x86_64-linux.email-http \ -# .#checks.x86_64-linux.email-ip \ +fmt_check() { + echo ".#checks.x86_64-linux.$1" +} + +check() { + tests="$(fmt_check "$1")" + shift 1 + + for test in "$@"; do + tests="$tests $(fmt_check "$test")" + done + + set -x + # We want to expand `$tests`. + # shellcheck disable=SC2086 + nix build \ + --option max-jobs 1 \ + --print-out-paths --no-link \ + $tests +} + +check atuin-sync \ + back \ + deploy-activate \ + deploy-schema \ + dns \ + formatting \ + git-server \ + rocie \ + rust-motd \ + sharkey \ + sharkey-cpu \ + taskchampion-sync +# email-dns \ +# email-http \ +# email-ip \ |
