Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

76 lines (58 sloc) 1.446 kB
#
# Basic makefile for general targets
#
VIRTUALENV_PATH = venv
VIRTUALENV_BIN = $(VIRTUALENV_PATH)/bin
EASY_INSTALL = $(VIRTUALENV_BIN)/easy_install
DEV_ENV = source $(VIRTUALENV_BIN)/activate ;
NOSE = $(VIRTUALENV_BIN)/nosetests --nocapture
NOSYD = $(VIRTUALENV_BIN)/nosyd -1
PIP = $(VIRTUALENV_BIN)/pip
PYTHON = $(ENV) $(VIRTUALENV_BIN)/python
.PHONY: test
test: unit-test integration-test acceptance-test
.PHONY: unit-test
unit-test:
$(NOSE) tests/unit
.PHONY: integration-test
integration-test:
$(NOSE) tests/integration
.PHONY: acceptance-test
acceptance-test:
$(NOSE) tests/acceptance -v
.PHONY: tdd
tdd:
$(DEV_ENV) $(NOSYD) tests/unit
.PHONY: docs
docs:
bin/sphinx-build -b html -d docs/build/doctrees docs/source docs/html
.PHONY: foreman
foreman:
$(DEV_ENV) foreman start -f Procfile
.PHONY: develop
develop:
$(PYTHON) setup.py develop
.PHONY: clean
clean:
-$(PYTHON) setup.py clean
-find . -type f -name '*.pyc' -o -name '*.tar.gz' -delete
-rm -f nosetests.xml
-rm -f pip-log.txt
-rm -f .nose-stopwatch-times
-rm -rf build dist *.egg-info
.PHONY: dist
dist: clean
$(shell export COPYFILE_DISABLE=true)
$(PYTHON) setup.py sdist
.PHONY: upload
upload:
$(PYTHON) setup.py sdist upload
.PHONY: requirements
requirements:
$(EASY_INSTALL) -U distribute
$(PIP) install -r requirements.txt
.PHONY: osx_requirements
osx_requirements:
.PHONY: virtualenv
virtualenv:
virtualenv --distribute $(VIRTUALENV_PATH)
Jump to Line
Something went wrong with that request. Please try again.