Skip to content

Instantly share code, notes, and snippets.

@ojii
Last active October 12, 2015 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojii/4020111 to your computer and use it in GitHub Desktop.
Save ojii/4020111 to your computer and use it in GitHub Desktop.
my django CMS Makefile for testing
ENV_BASE=env
REQUIREMENTS_DIR=test_requirements
define runtests
virtualenv-$1 $(ENV_BASE)-$1-$2
$(ENV_BASE)-$1-$2/bin/pip install $(PIP_FLAGS) -r $(REQUIREMENTS_DIR)/django-$2.txt
$(ENV_BASE)-$1-$2/bin/python runtests.py $(TEST_FLAGS)
endef
all: py25dj13 py25dj14 py26dj13 py26dj14 py26djtrunk py27dj13 py27dj14 py26dj15 py27dj15 py33dj16 py26djtrunk py27djtrunk py33djtrunk
py25: py25dj13 py25dj14
py26: py26dj13 py26dj14 py26djtrunk
py27: py27dj13 py27dj14 py27djtrunk
py33: py33dj15 py33djtrunk
dj13: py25dj13 py26dj13 py27dj13
dj14: py25dj14 py26dj14 py27dj14
dj15: py26dj15 py27dj15 py33dj15
djtrunk: py26djtrunk py27djtrunk py33djtrunk
py25dj13:
$(call runtests,2.5,1.3)
py25dj14:
$(call runtests,2.5,1.4)
py26dj13:
$(call runtests,2.6,1.3)
py26dj14:
$(call runtests,2.6,1.4)
py26dj15:
$(call runtests,2.6,1.5)
py26djtrunk:
$(call runtests,2.6,trunk)
py27dj13:
$(call runtests,2.7,1.3)
py27dj14:
$(call runtests,2.7,1.4)
py27dj15:
$(call runtests,2.7,1.5)
py27djtrunk:
$(call runtests,2.7,trunk)
py33dj15:
$(call runtests,3.2,trunk)
py33djtrunk:
$(call runtests,3.3,trunk)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment