deb-python-steadymark/Makefile
2015-02-11 23:28:02 -05:00

30 lines
730 B
Makefile

all: test
filename=steadymark-`python -c 'import steadymark;print steadymark.version'`.tar.gz
export PYTHONPATH:= ${PWD}
test: clean unit functional integration
unit:
@echo "Running unit tests"
@nosetests --rednose --verbosity=2 -s tests/unit
functional:
@python steadymark/__init__.py
integration:
@nosetests --verbosity=2 -s tests/integration
clean:
@printf "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore`; do rm -rf $$pattern; find . -name "$$pattern" -exec rm -rf {} \;; done
@echo "OK!"
release: test
@./.release
@python setup.py sdist register upload
@printf "Exporting to $(filename)... "
@tar czf $(filename) steadymark setup.py README.md COPYING
@echo "DONE!"