forked from serhatbolsu/robotframework-appiumlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 1.12 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
.PHONY: help
help:
@echo targets: version, generate_doc, pypi_upload, clean_pyc, android_demo, ios_demo, demo, unittest, test
generate_doc:
VENV/bin/python -m robot.libdoc ./AppiumLibrary/ ./doc/AppiumLibrary.html
update_github:
version=`python -c "import sys;sys.path.insert(0,'.');import AppiumLibrary;print AppiumLibrary.__version__"`
git tag $version
git push origin $version
git push origin master
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master
pypi_upload:clean_pyc
rm -rf src/robotframework_appiumlibrary.egg-info/
VENV/bin/python setup.py sdist upload
@echo https://pypi.python.org/pypi/robotframework-appiumlibrary/
clean_pyc:
find . -iname "*.pyc" -delete
find . -iname "__pycache__" | xargs rm -rf {} \;
android_demo:
VENV/bin/pybot ./demo/test_android_demo.txt
ios_demo:
VENV/bin/pybot ./demo/test_ios_demo.txt
demo:android_demo ios_demo
test_requirements:
python -m pip install -U -r test_require.txt
unittest: test_requirements
python setup.py test
test:unittest
coverage:
py.test --cov AppiumLibrary --cov-report=html tests
version:
cat AppiumLibrary/version.py