-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 905 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: help build test test-integration lint fmt clean all
# Default target when 'make' is run without arguments
help:
@echo "Available targets:"
@echo " build - Compile the project"
@echo " test - Run unit tests"
@echo " test-integration - Run integration tests"
@echo " lint - Run static analysis and checkstyle"
@echo " fmt - Auto-format code using Spotless"
@echo " clean - Clean build artifacts"
@echo " all - Run all tests and lint"
# Compile the project
build:
./gradlew assemble
# Run unit tests
test:
./gradlew test
# Run integration tests
test-integration:
./gradlew test-integration
# Run static analysis and checkstyle
lint:
./gradlew check
# Auto-format code using Spotless
fmt:
./gradlew spotlessApply
# Clean build artifacts
clean:
./gradlew clean
# Run all tests and lint
all: test lint