forked from openatx/uiautomator2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 762 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
.PHONY: build
format:
poetry run isort . -m HANGING_INDENT -l 120
test:
poetry run pytest -v mobile_tests/
covtest:
poetry run coverage run -m pytest -v demo_tests tests
poetry run coverage html --include 'uiautomator2/**'
cov:
poetry run pytest -v tests/ \
--cov-config=.coveragerc \
--cov uiautomator2 \
--cov-report xml \
--cov-report term
sync:
cd uiautomator2/assets; ./sync.sh; cd -
build:
poetry self add "poetry-dynamic-versioning[plugin]"
cd uiautomator2/assets; ./sync.sh; cd -
rm -fr dist
poetry build -vvv
init:
if [ ! -f "ApiDemos-debug.apk" ]; then \
wget https://github.com/appium/appium/raw/master/packages/appium/sample-code/apps/ApiDemos-debug.apk; \
fi
poetry run python -m adbutils -i ./ApiDemos-debug.apk