-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
50 lines (35 loc) · 1007 Bytes
/
makefile
File metadata and controls
50 lines (35 loc) · 1007 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
40
41
42
43
44
45
46
47
48
49
# Makefile for building and testing with Gradle
GRADLEW := ./gradlew
.PHONY: build clean test run
default:
@echo "Setting ./gradlew executable permissions..."
chmod +x ./gradlew
@echo "Compiling the project..."
./gradlew compileJava
build:
@echo "Building the project..."
@$(GRADLEW) build
compile:
./gradlew compileJava
clean:
@echo "Cleaning the build..."
@$(GRADLEW) clean
run:
@echo "Running the application..."
@$(GRADLEW) run
test:
@echo "Running tests..."
@$(GRADLEW) test
test-simultaneous-member-vote:
./gradlew test --tests *SimultaneousMemberVoteTest
test-immediate-response:
./gradlew test --tests *ImmediateResponseTest
test-varied-response:
./gradlew test --tests *VariedResponseTest
test-network:
./gradlew test --tests *NetworkHandlerTest
kill-ports:
@command -v lsof >/dev/null 2>&1 || { echo >&2 "lsof command not found. Aborting."; exit 1; }
@echo "Killing processes on ports 4570-4579..."
@-lsof -ti:4570-4579 | xargs -r kill -9
@echo "Ports freed."