mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:54:32 +00:00
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims - Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers - Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them - Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring - Document the new layout in docs/layout.md Co-authored-by: Junie <junie@jetbrains.com>
31 lines
946 B
Bash
Executable File
31 lines
946 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
: "${SH:=sh}"
|
|
|
|
# Workaround for GitHub Actions (SIGPIPE)
|
|
# In GitHub Actions, SIGPIPE seems to be set to SIG_IGN and if the process exits
|
|
# before receiving all STDIN data, it will result in Broken PIPE or I/O will be output
|
|
head() {
|
|
command head "$@"
|
|
cat >/dev/null
|
|
}
|
|
|
|
shellspec() {
|
|
set -- $SH shellspec --shell "$SH" "$@"
|
|
echo '$' "$@" >&2
|
|
"$@"
|
|
}
|
|
|
|
shellspec --banner --output progress --output documentation --output tap --output junit --output failures
|
|
shellspec --no-banner --skip-message quiet -j 3
|
|
shellspec --no-banner --skip-message quiet $(shellspec --list specfiles | head -n 5)
|
|
shellspec --no-banner --skip-message quiet $(shellspec --list examples:lineno | head -n 5)
|
|
shellspec --no-banner --skip-message quiet spec/general_spec.sh:40:60:80:100
|
|
shellspec --no-banner --skip-message quiet spec/libexec --profile
|
|
shellspec --syntax-check
|
|
shellspec --count
|
|
shellspec --task
|
|
shellspec --task hello:shellspec
|