araldo-websocket / Makefile

# NOT: pylint needs to be installed in the virtualenv regardless of whether
# it is available in system-wide; otherwise imports will fail
PACKAGE=araldo_websocket
BUILD_DEPS='mock >= 1.0.0' 'Sphinx >= 1.1.3' 'yolk >= 0.4.3'\
		   'pylint'  'pyflakes >= 0.5.0'  'pep8' \
		   'pytest >= 2.3.2' 'pytest-cov >= 1.6' 'pytest-xdist >= 1.8'



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 setup.py ${PACKAGE} test

check-pylint-errors:
	pylint --errors-only setup.py ${PACKAGE} test

check-pep8:
	pep8 setup.py ${PACKAGE} test

check-pyflakes:
	pyflakes setup.py ${PACKAGE}

clean:
	rm -rf build dist virtualenv

documentation:
	(cd doc && make html)

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

test-pytest-full:
	py.test --verbose --doctest-modules  --cov ${PACKAGE} --cov-report=html ${PACKAGE}/ test/

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

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

test-quick:
	nosetests --with-doctest  ${PACKAGE}

test-full:
	nosetests --with-doctest --with-coverage --cover-html ${PACKAGE}

install-deps-debian:
	sudo apt-get install libevent-dev
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.