Skip to content
Snippets Groups Projects
Makefile 800 B
Newer Older
Tamas Gal's avatar
Tamas Gal committed
PKGNAME=km3io

default: build

all: install

install: 
	pip install .

install-dev:
Tamas Gal's avatar
Tamas Gal committed
	pip install -r requirements.txt
Tamas Gal's avatar
Tamas Gal committed
	pip install -r requirements-dev.txt
	pip install -e .

clean:
	python setup.py clean --all

test: 
	py.test --junitxml=./reports/junit.xml -o junit_suite_name=$(PKGNAME) tests
Tamas Gal's avatar
Tamas Gal committed

test-cov:
Tamas Gal's avatar
Tamas Gal committed
	py.test --cov ./km3io --cov-report term-missing --cov-report xml:reports/coverage.xml --cov-report html:reports/coverage tests
Tamas Gal's avatar
Tamas Gal committed

test-loop: 
Tamas Gal's avatar
Tamas Gal committed
	py.test tests
	ptw --ext=.py,.pyx --ignore=doc tests
Tamas Gal's avatar
Tamas Gal committed

flake8: 
	py.test --flake8

pep8: flake8

docstyle: 
	py.test --docstyle

lint: 
	py.test --pylint

dependencies:
	pip install -Ur requirements.txt

.PHONY: yapf
yapf:
	yapf -i -r $(PKGNAME)
	yapf -i setup.py

.PHONY: all clean install install-dev test  test-nocov flake8 pep8 dependencies docstyle