Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcrosta committed Apr 10, 2024
1 parent a2a43ee commit 927b7e0
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
ci: fmt-rust lint test
ci-no-test: fmt-rust lint

fmt-rust:
@echo "Formatting Rust code..."
@python3 scripts/run-fmt.py
@for dir in test-cases/*; do \
if [ -d "$$dir" ]; then \
echo "Formatting $$dir..."; \
python3 scripts/run-fmt.py --dir $$dir; \
fi; \
done

lint:
@echo "Linting detectors and test-cases..."
@python3 scripts/run-clippy.py
@for dir in test-cases/*; do \
if [ -d "$$dir" ]; then \
echo "Linting $$dir..."; \
python3 scripts/run-clippy.py --dir $$dir; \
fi; \
done

test:
@echo "Generating test matrix and running tests..."
@echo "Running tests..."
@for detector in test-cases/*; do \
if [ -d "$$detector" ]; then \
detector_name=$$(basename $$detector); \
python3 scripts/run-tests.py --detector=$$detector_name; \
fi \
fi; \
done


0 comments on commit 927b7e0

Please sign in to comment.