-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 829 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
all: aar
aar: clean
./gradlew assembleRelease --no-build-cache && \
mkdir -p release/ && \
cp atinternet-dispatcher/build/outputs/aar/atinternet-dispatcher-release.aar release/ && \
cp LICENSE release/
clean:
./gradlew clean
test:
./gradlew testDebugUnitTest
test-coverage:
./gradlew testDebugCoverageUnitTest && \
awk -F"," '{ instructions += $$4 + $$5; covered += $$5 } END { print covered, "/", instructions, "instructions covered"; print "Total", 100*covered/instructions "% covered" }' atinternet-dispatcher/build/test-results/jacoco.csv
check-token:
ifndef SONAR_TOKEN
$(error SONAR_TOKEN is undefined)
endif
sonar: check-token
./gradlew sonarqube
lint:
./gradlew lintDebug
ci: clean lint test-coverage aar
publish: aar
./gradlew atinternet-dispatcher:publish
.PHONY: ci sonar check-token publish aar