araldo / Makefile

# NOT: pylint needs to be installed in the virtualenv regardless of whether
# it is available in system-wide; otherwise imports will fail
BUILD_DEPS='mock >= 1.0.0' 'Sphinx >= 1.1.3' 'nose >= 1.2.1' 'yolk >= 0.4.3'\
		   'pylint'  'pyflakes >= 0.5.0'  'pep8' 'nose-cov >= 1.6'\
		   'pytest >= 2.3.2' 'pytest-cov >= 1.6' 'pytest-xdist >= 1.8'\
		   'ipdb >= 0.7', 'pytest-capturelog >= 0.7' 'pytest-pep8 >= 1.0.2'\
		   'pytest-codecheckers >= 0.2' 'ipython >= 0.10.2'



develop: setup-develop ensure-build-deps

ensure-build-deps:
	pip install ${BUILD_DEPS}

upgrade-build-deps:
	pip install --upgrade ${BUILD_DEPS}

#create-virtualenv:
#	virtualenv virtualenv

#activate-virtualenv:
#	. virtualenv/bin/activate

setup-develop:
	python setup.py develop

check: check-pylint-errors check-pep8 check-pyflakes

check-pylint:
	pylint --include-ids y setup.py araldo test

check-pylint-errors:
	pylint --include-ids y --errors-only setup.py araldo test

check-pep8:
	pep8 setup.py araldo test

check-pyflakes:
	pyflakes setup.py araldo

check-sloccount:
	sloccount --duplicates --wide  araldo | fgrep -v virtualenv|fgrep -v .hg > sloccount.sc || :

clean:
	rm -rf build dist virtualenv sloccount.sc .cache .coverage

documentation:
	(cd doc && make html)

on-commit:
	${MAKE} test-pytest-quick

test-pytest-full:
	# -n 4
	py.test --verbose --doctest-modules --cov araldo --cov-report=html araldo/ test/ scripts/

test-pytest-quick:
	py.test --verbose --doctest-modules test/

test-pytest-quick-loop:
	py.test  --looponfail  test/

test-quick:
	nosetests --with-doctest  araldo

test-full:
	nosetests --with-doctest --with-coverage --cover-html araldo

install-deps-debian:
	sudo apt-get install libevent-dev

websocket-test:
	(cd functest/websocket_test && python -mSimpleHTTPServer 9099)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.