forked from metwork-framework/cron-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 795 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
35
36
37
38
39
40
default: all
all:
python setup.py build
install: all
python setup.py install
clean:
rm -f *.pyc
cd tests && rm -f *.pyc
cd cronwrapper && rm -f *.pyc
cd tests && rm -Rf htmlcov
rm -f .coverage tests/.coverage
rm -f MANIFEST
rm -Rf build
rm -Rf dist
rm -Rf cronwrapper.egg-info
rm -Rf cronwrapper/__pycache__
rm -Rf tests/__pycache__
rm -f tests/conf.py
rm -f tests/auth.txt
sdist: clean
python setup.py sdist
test:
flake8 .
cd tests && nosetests --exe
coveralls:
cd tests && nosetests --exe --with-coverage --cover-package=cronwrapper && ../.coveralls.sh
upload:
python setup.py sdist register upload
coverage:
cd tests && coverage run `which nosetests` --exe && coverage html --include='*/cronwrapper/*' --omit='test_*'
release: test coverage clean upload clean