Created
October 25, 2013 15:49
-
-
Save tobyontour/7156857 to your computer and use it in GitHub Desktop.
Check that you're in a python virtualenv before running targets in a Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| coverage: checkvenv | |
| coverage run manage.py test django_project ; coverage html | |
| checkvenv: | |
| @[ -z "$(VIRTUAL_ENV)" ] && (echo "Not in virtualenv"; false) || true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment