wcs-olap/tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.4 KiB
INI
Raw Normal View History

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
2019-01-18 11:06:52 +01:00
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs-olap/{env:BRANCH_NAME:}
envlist = py3
[tox:jenkins]
envlist =
pylint
py3
[testenv]
usedevelop = true
setenv =
COVERAGE={tty::--cov=wcs_olap --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc}
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
WCS_MANAGE=wcs/manage.py
PGDATABASE=postgres
SETUPTOOLS_USE_DISTUTILS=stdlib
deps =
pytest
pytest-cov
pytest-random
httmock
# wcs-olap optional dependencies
sentry_sdk<0.12.3
# w.c.s. dependencies, as it cannot b installed through pip
quixote>=3,<3.2
2023-03-20 17:59:18 +01:00
psycopg2-binary
2021-11-30 17:26:20 +01:00
bleach
dnspython
vobject
pyproj
2021-12-17 17:40:43 +01:00
unidecode
django-ratelimit<3
emoji
phonenumbers
gadjo
2022-07-21 17:48:49 +02:00
pyquery
lxml
2024-04-03 17:51:36 +02:00
psutil
freezegun
Pillow
2023-03-20 17:59:18 +01:00
django>=3.2,<3.3
passenv=
BRANCH_NAME
# support for pg_virtualenv
PGPORT
PGHOST
PGUSER
PGPASSWORD
commands =
./get_wcs.sh
py.test {tty:--sw:} {env:JUNIT:} {env:COVERAGE:} {posargs:--random-group tests}
[testenv:pylint]
basepython = python3
deps =
pylint
commands =
/bin/bash -c "./pylint.sh wcs_olap"
2020-01-30 21:03:06 +01:00
[pytest]
junit_family=xunit2