Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test target to Makefile #16

Merged
merged 1 commit into from
Jul 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ help:
@echo "- serve Run the dev server"
@echo "- check Check the code with flake8"
@echo "- modwsgi Create files for Apache mod_wsgi"
@echo "- test Run the unit tests"
@echo

.PHONY: install
Expand All @@ -36,6 +37,10 @@ flake8: .build/venv/bin/flake8
.PHONY: modwsgi
modwsgi: install .build/venv/c2cgeoform.wsgi .build/apache.conf

.PHONY: test
test:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.build/venv (or install) should be a prerequisite for this target. Put it differently make cleanall test should work as expected.

.build/venv/bin/python setup.py test

.build/venv:
mkdir -p $(dir $@)
virtualenv --no-site-packages .build/venv
Expand Down