-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 1.3 KB
/
Makefile
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
50
51
52
## Username for the SONAR server.
SONAR_USERNAME?=admin
## Password for the SONAR server.
SONAR_PASSWORD?=admin
## Port for the SONAR server (if running on LocalHost)
SONAR_PORT?=9000
## URL for the SONAR server
SONAR_HOST?=http://localhost:$(SONAR_PORT)/
.PHONY: all
## Builds and tests everything.
# Sonar is run separately because it depends on the SonarQube server.
all:
./mvnw verify
.PHONY: mutation
## Runs the mutation tests.
mutation:
./mvnw org.pitest:pitest-maven:mutationCoverage
.PHONY: sonar
## Performs static code analysis with SonarQube.
sonar:
./mvnw verify sonar:sonar -Dsonar.host.uri="$(SONAR_HOST)" -Dsonar.login="$(SONAR_USERNAME)" -Dsonar.password="$(SONAR_PASSWORD)"
.PHONY: updates
## Displays which dependencies can be updated to newer versions.
updates:
./mvnw versions:display-dependency-updates | grep -- '->' | sort -u
.PHONY: sonard
## Runs a Sonar server locally.
sonard:
docker start sonarqube || docker run -d --name sonarqube -p $(SONAR_PORT):9000 sonarqube
.PHONY: clean
## Removes all auto-generated files.
clean:
./mvnw clean
-include ~/.makehelp/include/makehelp/Help.mk
ifeq "help" "$(filter help,$(MAKECMDGOALS))"
~/.makehelp/include/makehelp/Help.mk:
git clone --depth=1 https://github.com/christianhujer/makehelp.git ~/.makehelp
endif
-include ~/.User.mk
-include .User.mk