Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
areski committed Nov 26, 2015
1 parent fb8e595 commit 05e6978
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,4 @@
global-exclude *.pyc
include README.rst
include LICENSE
recursive-include a2billing_flask_api *
27 changes: 27 additions & 0 deletions Makefile
@@ -0,0 +1,27 @@
.PHONY: docs release clean build install test

test: buildenv install
. a2billing_flask_api_env/bin/activate; python setup.py test

buildenv:
virtualenv a2billing_flask_api_env
. a2billing_flask_api_env/bin/activate; pip install -Ur requirements.txt

# assume that the developer already works with virtualenv
# or virtualenv-wrapper
install:
. a2billing_flask_api_env/bin/activate; python setup.py install

coverage: install
coverage run --source=a2billing_flask_api setup.py test
coverage report
coverage html

docs: buildenv
$(MAKE) -C docs;

clean:
rm -rf a2billing_flask_api_env htmlcov

cleanall: clean
$(MAKE) -C docs clean

0 comments on commit 05e6978

Please sign in to comment.