-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 983 Bytes
/
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
# Please select your default target.
# .DEFAULT_GOAL := help
.DEFAULT_GOAL := build
.PHONY: scripts test cov tdd help clean check
help: # Show help for each of the Makefile recipes.
@echo 'Available commands:'
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
ci: clean # This mimics everything that would happen in the CI process.
mvn clean install
build: # Build the jar file.
- mvn clean package
test: # Run unit tests.
- mvn test -DunitOnly=true
cov: # Run mutation coverage.
- mvn -DwithHistory test-compile org.pitest:pitest-maven:mutationCoverage
.SILENT: tdd
tdd: # Run tests of git modified files. You may need to give permission to the script to run.
./scripts/tdd-modified-files.sh
clean: # Remove all build files
-rm -rf ./target
-rm -rf ./reports
-rm -rf ./coverage
-mvn clean
check: # Build the jar file.
- mvn dependency:analyze