-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile
37 lines (28 loc) · 850 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
36
37
MVN=mvn
SONAR_HOST=http://localhost:9999
SONAR_COVERAGE_EXCLUSIONS="**/com/github/kklisura/cdt/protocol/**/*,**/com/github/kklisura/cdt/App.java"
sonar-analysis:
# Running sonar analysis
$(MVN) clean test -P coverage && \
$(MVN) org.jacoco:jacoco-maven-plugin:restore-instrumented-classes
$(MVN) sonar:sonar -Dsonar.host.url=$(SONAR_HOST) \
-Dsonar.tests="src/test" \
-Dsonar.exclusions="$(SONAR_COVERAGE_EXCLUSIONS)" \
-Dsonar.coverage.exclusions="$(SONAR_COVERAGE_EXCLUSIONS)"
clean:
$(MVN) clean
verify:
# Running tests
$(MVN) clean test
build:
# Building...
$(MVN) clean package
deploy:
# Deploying
GPG_TTY=$$(tty) $(MVN) clean compile deploy -P release
snapshot:
$(MVN) versions:set -DnewVersion=${version}-SNAPSHOT
$(MVN) versions:commit
release:
$(MVN) versions:set -DnewVersion=${version}
$(MVN) versions:commit