diff options
| -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 \ |
