Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (39 sloc) 1.784 kb
all: check_dependencies unit functional integration doctest
filename=lettuce-`python -c 'import lettuce;print lettuce.version'`.tar.gz
export PYTHONPATH:= ${PWD}
export LETTUCE_DEPENDENCIES:= nose mox sphinx lxml django
check_dependencies:
@echo "Checking for dependencies to run tests ..."
@for dependency in `echo $$LETTUCE_DEPENDENCIES`; do \
python -c "import $$dependency" 2>/dev/null || (echo "You must install $$dependency in order to run lettuce's tests" && exit 3) ; \
done
unit: clean
@echo "Running unit tests ..."
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/unit --cover-package=lettuce
functional: clean
@echo "Running functional tests ..."
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/functional --cover-package=lettuce
integration: clean
@echo "Running integration tests ..."
@nosetests -s --verbosity=2 tests/integration
doctest: clean
@cd docs && make doctest
documentation:
@cd docs && make html
clean:
@printf "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore`; do find . -name "$$pattern" -delete; done
@echo "OK!"
withdraw-documentation:
@printf 'Removing current documentation ...'
@ssh gabrielfalcao@gabrielfalcao.com rm -rf lettuce.it/public/*
@echo "DONE!"
deploy-documentation:documentation withdraw-documentation
@printf 'Deploying documentation to http://lettuce.it ...'
@cd ./docs/_build/html && tar -zcp * | ssh gabrielfalcao@gabrielfalcao.com "tar zxp -C ./lettuce.it/public/"
@echo "DONE!"
deploy: deploy-documentation
release: clean unit functional integration doctest deploy-documentation
@printf "Exporting to $(filename)... "
@tar czf $(filename) lettuce setup.py README.md COPYING
@echo "DONE!"
Jump to Line
Something went wrong with that request. Please try again.