generated from nelkinda-templates/template-java-multi-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (58 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
GRADLE:=./gradlew
GRADLEFLAGS:=--warning-mode all
BUILD:=$(GRADLE)
BUILDFLAGS:=$(GRADLEFLAGS)
GRADLE_BOOTSTRAP:=$(firstword $(wildcard $(GRADLE) $(shell which gradle)))
.PHONY: all
## Builds and verifies the project.
all: build
.PHONY: pipeline
## Runs the same thing as the pipeline.
pipeline:
$(BUILD) $(BUILDFLAGS) checkUpdates build :lib-systemassert:pitest
.PHONY: publish
## Publishes the library to GitHub.
publish:
$(BUILD) $(BUILDFLAGS) :lib-systemassert:publish
.PHONY: continuous
## Builds and tests continuously.
continuous:
$(BUILD) $(BUILDFLAGS) --continuous test pitest
.PHONY: build
## Builds and verifies the project.
build: $(BUILD)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: clean
clean:: $(BUILD)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: pitest
## Runs the Pitest mutation tests.
pitest: $(BUILD)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: checkUpdates
## Checks for dependency updates.
checkUpdates: $(BUILD)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: wrapper
## Generates the wrapper.
wrapper: $(BUILD)
$(BUILD):
$(GRADLE_BOOTSTRAP) wrapper
.PHONY: sonard
## Starts a local SonarQube server using Docker.
# If a Docker container sonarqube exists, it will (re)start it.
# If it doesn't exist, it will download the sonarqube docker image, configure the plugins, and start a container with the same name.
sonard:
$(MAKE) -C sonarqube/
.PHONY: sonarqube
## Runs the SonarQube analysis.
# Requires the project to be built and the SonarQube server to be running.
sonarqube:
$(BUILD) $(BUILDFLAGS) $@
-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