-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (51 loc) · 1.52 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
GRADLE:=./gradlew
GRADLEFLAGS:=--warning-mode all
BUILD:=echo -n | $(GRADLE)
BUILDFLAGS:=$(GRADLEFLAGS)
GRADLE_BOOTSTRAP:=echo -n | $(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) build
#$(BUILD) $(BUILDFLAGS) build pitest
.PHONY: continuous
## Builds and tests continuously.
continuous:
$(BUILD) $(BUILDFLAGS) --continuous test pitest
.PHONY: build
## Builds and verifies the project.
build: $(GRADLE)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: clean
clean:: $(GRADLE)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: pitest
## Runs the Pitest mutation tests.
pitest: $(GRADLE)
$(BUILD) $(BUILDFLAGS) $@
.PHONY: wrapper
## Generates the wrapper.
wrapper: $(GRADLE)
$(GRADLE):
$(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