generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
58 lines (45 loc) · 1.19 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
build:
./gradlew build
test:
./gradlew test
lint:
./gradlew spotlessCheck
format:
./gradlew spotlessApply
clean: clean-smoke-tests
./gradlew clean
#: cleans up smoke test output
clean-smoke-tests:
rm -rf ./smoke-tests/collector/data.json
rm -rf ./smoke-tests/collector/data-results/*.json
rm -rf ./smoke-tests/report.*
smoke-tests/collector/data.json:
@echo ""
@echo "+++ Zhuzhing smoke test's Collector data.json"
@touch $@ && chmod o+w $@
smoke-docker: smoke-tests/collector/data.json
@echo ""
@echo "+++ Spinning up the smokers."
@echo ""
docker compose up --build collector --build mock-server --detach
android-emulator:
@echo ""
@echo "+++ Setting up Android environment."
@echo ""
bash ./setup-android-env.sh
android-test: android-emulator
@echo ""
@echo "+++ Running Android tests."
@echo ""
./gradlew :example:pixel8api35debugAndroidTest --rerun
smoke-bats: smoke-tests/collector/data.json
@echo ""
@echo "+++ Running bats smoke tests."
@echo ""
cd smoke-tests && bats ./smoke-e2e.bats --report-formatter junit --output ./
smoke: smoke-docker android-test smoke-bats
unsmoke:
@echo ""
@echo "+++ Spinning down the smokers."
@echo ""
docker compose down --volumes