# 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] 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 psycopg2-binary bleach dnspython vobject pyproj unidecode django-ratelimit<3 emoji phonenumbers gadjo pyquery lxml psutil freezegun Pillow 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" [pytest] junit_family=xunit2