forked from ettoreleandrotognoli/python-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 741 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
PYTHON?=python
test:
${PYTHON} -m unittest discover -s "tests/unit" -p "test_*.py"
test-all:
${PYTHON} -m unittest discover -s "tests/" -p "test_*.py"
coverage:
coverage run -m unittest discover -s "tests/unit" -p "test_*.py"
coverage html --include="asterisk/*"
coverage-all:
coverage run -m unittest discover -s "tests/" -p "test_*.py"
coverage html --include="asterisk/*"
${PYTHON} -mwebbrowser htmlcov/index.html &
public:
${PYTHON} setup.py register -r pypi
${PYTHON} setup.py sdist upload -r pypi
public-test:
${PYTHON} setup.py register -r pypitest
${PYTHON} setup.py sdist upload -r pypitest
clean:
rm -f $(shell find . -name "*.pyc")
rm -rf htmlcov/ coverage.xml .coverage
rm -rf dist/ build/
rm -rf *.egg-info