forked from serhatbolsu/robotframework-appiumlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (33 loc) · 1.05 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
.PHONY: help
help:
@echo targes: version, generate_doc, pypi_upload, clean_pyc, andriod_demo, ios_demo, demo, unittest, test
generate_doc:
VENV/bin/python -m robot.libdoc ./src/AppiumLibrary/ ./doc/AppiumLibrary.html
update_github:
version=`python -c "import sys;sys.path.insert(0,'src');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 {} \;
andriod_demo:
VENV/bin/pybot ./demo/test_andriod_demo.txt
ios_demo:
VENV/bin/pybot ./demo/test_ios_demo.txt
demo:andriod_demo ios_demo
unittest:
py.test -s tests
test:unittest
coverage:
py.test --cov AppiumLibrary --cov-report=html tests
version:
cat src/AppiumLibrary/version.py