source: tox.ini@ 2175c7a

debian/bullseye
Last change on this file since 2175c7a was 4a43d31, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago

Adapted tox accordingly

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[43fd35c]1[tox]
[4a43d31]2envlist = clean,py3fast,py3sitepackages,py3slow,py3chrome
[43fd35c]3#skipsdist = True
4
5[testenv]
6setenv =
[91c5ab7]7 CPLUS_INCLUDE_PATH=/usr/include/gdal
8 C_INCLUDE_PATH=/usr/include/gdal
[43fd35c]9deps = -rrequirements.txt
[91c5ab7]10 -rtest-requirements.txt
11 pytest
12 pytest-cov
13 pytest-pep8
14 coverage
[43fd35c]15commands =
[4a43d31]16 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8
[43fd35c]17
18[testenv:clean]
19deps = coverage
20skip_install = true
21commands = coverage erase
22
[91c5ab7]23[testenv:py3fast]
24commands =
[4a43d31]25 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'not slow and not sitepackages and not selenium'
[91c5ab7]26
[176de96]27[testenv:py3slow]
28commands =
[4a43d31]29 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'slow'
[0f60a52]30
31[testenv:py3sitepackages]
32sitepackages=true
33commands =
[4a43d31]34 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'sitepackages'
[176de96]35
[4a43d31]36[testenv:py3chrome]
37commands =
38 pytest --driver=Chrome --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'selenium'
39
[43fd35c]40[pytest]
41xfail_strict=true
[176de96]42markers =
43 slow: marks tests as slow (deselect with '-m "not slow"')
[0f60a52]44 sitepackages: marks tests, which need site-packages enabled
[4a43d31]45 selenium: marks tests, which uses selenium
[43fd35c]46norecursedirs=src/mapservice-webclient/*
[91c5ab7]47 build/*
[43fd35c]48pep8ignore =
[9f0f35e]49 src/gnuboat/common/spatial/tile_generator.py E701
50 src/gnuboat/common/datahandler/rrd_schema.py E701
[2c86c99]51 src/gnuboat/common/bin/gdal2tiles-gnuboat.py ALL
[9f0f35e]52 src/gnuboat/mapservice_impl/tasks/tile_config.py E701
[43fd35c]53 src/gnuboat/mapservice/controllers/*.py E501
54 src/gnuboat/mapservice/models/*.py E501
[c04676b]55 src/gnuboat/mapservice/test/*.py E501 W293
[91c5ab7]56 src/gnuboat/mapservice_client/*.py E402 E501 W503
[2c86c99]57 src/gnuboat/deviceservice/controllers/*.py E501
58 src/gnuboat/deviceservice/models/*.py E501
[91c5ab7]59 src/gnuboat/deviceservice/test/*.py E251 E501 W293
Note: See TracBrowser for help on using the repository browser.