-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.56 KB
/
Copy pathMakefile
File metadata and controls
45 lines (36 loc) · 1.56 KB
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
.PHONY: help check test clean doc
help:
@echo "----- INSTALL -------------------------------------------------------------------"
@echo "install install and link the scripts for the project"
@echo "----- BUILD ---------------------------------------------------------------------"
@echo "all clean and build the project"
@echo "build build the project in all modes"
@echo "buildDebug build the project for the sandbox in debug mode"
@echo "buildRelease build the project for the production in release mode"
@echo "----- TESTS && LINT -------------------------------------------------------------"
@echo "test test all packages (mock mode)"
@echo "lint lint all packages"
@echo "----- OTHERS --------------------------------------------------------------------"
@echo "clean clean the project"
@echo "help print this message"
@echo "doc build the javadoc"
all: clean build
install:
chmod +x ./scripts/pre-push-test.sh
ln -sf ../../scripts/pre-push-test.sh ./.git/hooks/pre-push
chmod +x ./.git/hooks/pre-push
chmod +x ./scripts/pre-commit-test.sh
ln -sf ../../scripts/pre-commit-test.sh ./.git/hooks/pre-commit
chmod +x ./.git/hooks/pre-commit
check:
./gradlew :sdk-core:lintRelease :sdk-api:lintNetworkRelease :sdk-api:testMockReleaseUnitTest
test:
./gradlew testMockDebugUnitTest
lint:
./gradlew lint
clean:
./gradlew clean
build:
./gradlew :sdk-core:assembleRelease :sdk-api:assembleNetworkRelease
doc:
./gradlew javadoc