updated python unittests

This commit is contained in:
geekerzp
2015-05-16 17:30:42 +08:00
parent 6826a1d7df
commit 9809ce1d18
3 changed files with 10 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ ifndef VIRTUAL_ENV
http://docs.python-guide.org/en/latest/dev/virtualenvs/)
endif
setup: virtualenv $(SETUP_OUT)
setup: $(SETUP_OUT)
$(SETUP_OUT): setup.py setup.cfg
python setup.py develop
@@ -19,17 +19,19 @@ $(REQUIREMENTS_OUT): $(REQUIREMENTS_FILE)
python setup.py develop
clean:
rm -rf $(REQUIREMENTS_OUT)
rm -rf $(SETUP_OUT)
rm -rf .tox
rm -rf .coverage
find . -name "*.py[oc]" -delete
find . -name "__pycache__" -delete
rm -f $(REQUIREMENTS_OUT)
rm -rf $(SETUP_OUT)
requirements: setup $(REQUIREMENTS_OUT)
test: requirements
test: clean requirements
nosetests
test-all: requirements
test-all: virtualenv clean requirements
tox