tests: add shellcheck

This commit is contained in:
Otto Sabart 2022-08-16 21:00:00 +02:00 committed by Erik Arvstedt
parent b625325487
commit 9a92d29111
No known key found for this signature in database
GPG key ID: 33312B944DD97846
3 changed files with 30 additions and 1 deletions

View file

@ -312,8 +312,14 @@ examples() {
(cd "$scriptDir/../examples" && nix-shell --run "$script")
}
shellcheck() {
if ! checkFlakeSupport "shellcheck"; then return; fi
nix shell --inputs-from "$scriptDir/.." nixpkgs#shellcheck -c "$scriptDir/shellcheck.sh"
}
all() {
buildable
buildable "$@"
shellcheck
examples
flake
nixosSearch