-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathMakefile
82 lines (68 loc) · 2.54 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
all: build
.PHONY: build test clean bump release
build:
./gradlew build -PABI_FILTERS=arm64-v8a,armeabi-v7a,x86,x86_64
clean:
./gradlew clean
test:
./gradlew connectedCheck
remote-test:
ifeq ($(BROWSER_STACK_USERNAME),)
@$(error BROWSER_STACK_USERNAME is not defined)
endif
ifeq ($(BROWSER_STACK_ACCESS_KEY),)
@$(error BROWSER_STACK_ACCESS_KEY is not defined)
endif
@APP_LOCATION=/app/bugsnag-android-core/build/outputs/apk/androidTest/debug/bugsnag-android-core-debug-androidTest.apk \
INSTRUMENTATION_DEVICES='["Google Nexus 5-4.4", "Google Pixel-7.1", "Google Pixel 3-9.0"]' \
docker-compose up --build android-instrumentation-tests
BUILD_TASK ?= assembleRelease
MINIMAL_FIXTURE ?= false
TEST_FIXTURE_NDK_VERSION ?= 16.1.4479499
TEST_FIXTURE_NAME ?= fixture
USE_LEGACY_OKHTTP ?= false
notifier:
# Build the notifier
@./gradlew -PVERSION_NAME=9.9.9 assembleRelease publishToMavenLocal -x check
fixture-r19: notifier
# Build the r19 test fixture
@cd ./features/fixtures/mazerunner && ./gradlew -PTEST_FIXTURE_NDK_VERSION=19.2.5345600 \
-PTEST_FIXTURE_NAME=fixture-r19.apk \
assembleRelease -x check
@ruby scripts/copy-build-files.rb release r19
fixture-r21: notifier
# Build the r21 test fixture
@cd ./features/fixtures/mazerunner && ./gradlew -PTEST_FIXTURE_NDK_VERSION=21.4.7075529 \
-PTEST_FIXTURE_NAME=fixture-r21.apk \
assembleRelease -x check
@ruby scripts/copy-build-files.rb release r21
fixture-minimal: notifier
# Build the minimal test fixture
@cd ./features/fixtures/mazerunner && ./gradlew -PMINIMAL_FIXTURE=true \
-PTEST_FIXTURE_NDK_VERSION=17.2.4988734 \
-PTEST_FIXTURE_NAME=fixture-minimal.apk \
assembleRelease -x check
@ruby scripts/copy-build-files.rb release minimal
fixture-debug: notifier
# Build the minimal test fixture
@cd ./features/fixtures/mazerunner && ./gradlew -PTEST_FIXTURE_NDK_VERSION=17.2.4988734 \
-PTEST_FIXTURE_NAME=fixture-debug.apk \
assembleDebug -x check
@ruby scripts/copy-build-files.rb debug debug
example-app:
@./gradlew assembleRelease publishToMavenLocal -x check
# Build Android example app
@cd ./examples/sdk-app-example/ && ./gradlew clean assembleRelease
bump:
ifneq ($(VERSION),)
@echo "Bumping version to $(VERSION)"
@./scripts/bump-version.sh $(VERSION)
else
@echo "Please provide a version number"
@./scripts/bump-version.sh
endif
.PHONY: check
check:
@./gradlew lint detekt ktlintCheck checkstyle
@./scripts/run-cpp-check.sh
@./scripts/run-clang-format-ci-check.sh