Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (47 loc) · 1.88 KB
/
Copy pathMakefile
File metadata and controls
60 lines (47 loc) · 1.88 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: all clean compile javadocs dryRelease update format checkFormat api assembleUiTestRelease assembleUiTestCriticalRelease runUiTestCritical check preMerge publish
all: stop clean javadocs compile
assembleUiTests: assembleUiTestRelease
preMerge: check
publish: clean dryRelease
# deep clean
clean:
./gradlew clean --no-configuration-cache
rm -rf distributions
# build and run tests
compile:
./gradlew build
javadocs:
./gradlew aggregateJavadocs
# do a dry release (like a local deploy)
dryRelease:
./gradlew aggregateJavadocs distZip --no-build-cache --no-configuration-cache
# check for dependencies update
update:
./gradlew dependencyUpdates -Drevision=release
# Spotless formats the code. The root spotlessApply doesn't reach the separate builds.
format:
./gradlew spotlessApply
./gradlew -p sentry-samples spotlessApply
./gradlew -p sentry-samples/sentry-samples-android spotlessApply
./gradlew -p sentry-android-integration-tests spotlessApply
# Spotless check's code
checkFormat:
./gradlew spotlessJavaCheck spotlessKotlinCheck
./gradlew -p sentry-samples spotlessJavaCheck spotlessKotlinCheck
./gradlew -p sentry-samples/sentry-samples-android spotlessJavaCheck spotlessKotlinCheck
./gradlew -p sentry-android-integration-tests spotlessJavaCheck spotlessKotlinCheck
# Binary compatibility validator
api:
./gradlew updateKotlinAbi
# Assemble release and Android test apk of the uitest-android module
assembleUiTestRelease:
./gradlew -p sentry-android-integration-tests :sentry-uitest-android:assembleRelease :sentry-uitest-android:assembleAndroidTest
# Assemble release of the uitest-android-critical module
assembleUiTestCriticalRelease:
./gradlew -p sentry-android-integration-tests :sentry-uitest-android-critical:assembleRelease
# Run Maestro tests for the uitest-android-critical module
runUiTestCritical:
./scripts/test-ui-critical.sh
# Run tests and lint
check:
./gradlew check