Skip to content

Commit

Permalink
Run ShellCheck on test scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Nov 13, 2024
1 parent fb92d32 commit ce80b8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
brew "cmake"
cask "shellcheck"
brew "hurl"
brew "jq"
cask "docker"
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ endif()

if(PROJECT_IS_TOP_LEVEL AND REGISTRY_DEVELOPMENT)
noa_target_clang_format(SOURCES src/*.h src/*.cc)
noa_target_shellcheck(SOURCES test/*.sh)
endif()
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ compile:
$(JSONSCHEMA) fmt --verbose schemas/*.json
$(JSONSCHEMA) lint --verbose schemas/*.json
$(CMAKE) --build $(OUTPUT) --config $(PRESET) --target clang_format
$(CMAKE) --build $(OUTPUT) --config $(PRESET) --target shellcheck
$(CMAKE) --build $(OUTPUT) --config $(PRESET) --parallel 4
$(CMAKE) --install $(OUTPUT) --prefix $(PREFIX) --config $(PRESET) --verbose \
--component sourcemeta_registry
Expand All @@ -41,6 +42,7 @@ lint:
$(JSONSCHEMA) fmt --check --verbose schemas/*.json
$(JSONSCHEMA) lint --verbose schemas/*.json
$(CMAKE) --build $(OUTPUT) --config $(PRESET) --target clang_format
$(CMAKE) --build $(OUTPUT) --config $(PRESET) --target shellcheck

.PHONY: test
test:
Expand Down

0 comments on commit ce80b8a

Please sign in to comment.