[tox]
envlist = clean,py36
#skipsdist = True

[testenv]
setenv =
	CPLUS_INCLUDE_PATH=/usr/include/gdal
	C_INCLUDE_PATH=/usr/include/gdal
deps = -rrequirements.txt
	  -rtest-requirements.txt
	  pytest
	  pytest-cov
	  pytest-pep8
	  coverage
commands =
	pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8

[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

[testenv:py3slow]
commands =
    pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html -m 'slow'

[pytest]
xfail_strict=true
markers =
    slow: marks tests as slow (deselect with '-m "not slow"')
norecursedirs=src/mapservice-webclient/*
	build/*
pep8ignore =
    src/gnuboat/common/spatial/tilegenerator.py E701
    src/gnuboat/common/bin/gdal2tiles-gnuboat.py ALL
    src/gnuboat/mapservice_impl/tasks/tileconfig.py E701
    src/gnuboat/mapservice/controllers/*.py E501
    src/gnuboat/mapservice/models/*.py E501
    src/gnuboat/mapservice/test/*.py E501 W293
    src/gnuboat/deviceservice/controllers/*.py E501
    src/gnuboat/deviceservice/models/*.py E501
    src/gnuboat/deviceservice/test/*.py E501 W293
