tests: add shellcheck

This commit is contained in:
Otto Sabart
2022-08-28 18:25:37 +02:00
committed by Erik Arvstedt
parent b625325487
commit 9a92d29111
3 changed files with 30 additions and 1 deletions
+7 -1
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