-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
49 lines (40 loc) · 1.07 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: clean clean-test clean-pyc clean-build docs help
# .DEFAULT_GOAL := help
clean: clean-build clean-pyc clean-test
test: test-py2 test-py3
python3 -m robot.rebot \
--outputdir tests/results \
tests/results/py2/output.xml \
tests/results/py3/output.xml \
test-py3:
python3 -m robot \
--argumentfile tests/conf/default.args \
--name "Python 3 Tests" \
--outputdir tests/results/py3 \
--variable BROWSER:chrome \
tests
test-py2:
python2 -m robot \
--argumentfile tests/conf/default.args \
--name "Python 2 Tests" \
--outputdir tests/results/py2 \
--variable BROWSER:chrome \
tests
clean-build:
rm -rf build/
rm -rf dist/
rm -rf .eggs/
find . -name '*.egg-info' -exec rm -rf {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
clean-test:
rm -rf tests/results/*
release: clean dist
twine upload dist/*
dist: clean
python setup.py sdist
ls -l dist