2016-05-12 21:31:16 +02:00
|
|
|
# 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:}
|
2020-06-03 09:37:55 +02:00
|
|
|
envlist = py3
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
envlist =
|
|
|
|
pylint
|
|
|
|
py3
|
2016-05-12 21:31:16 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = true
|
|
|
|
setenv =
|
2022-01-11 16:18:00 +01:00
|
|
|
COVERAGE={tty::--cov=wcs_olap --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc}
|
2020-06-03 09:37:55 +02:00
|
|
|
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
|
|
|
WCS_MANAGE=wcs/manage.py
|
|
|
|
PGDATABASE=postgres
|
2020-09-01 14:26:18 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2020-06-03 09:37:55 +02:00
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-random
|
|
|
|
httmock
|
|
|
|
|
2021-08-07 15:26:57 +02:00
|
|
|
# wcs-olap optional dependencies
|
|
|
|
sentry_sdk<0.12.3
|
|
|
|
|
2020-06-03 09:37:55 +02:00
|
|
|
# w.c.s. dependencies, as it cannot b installed through pip
|
2020-08-11 08:37:41 +02:00
|
|
|
quixote>=3,<3.2
|
2023-03-20 17:59:18 +01:00
|
|
|
psycopg2-binary
|
2021-11-30 17:26:20 +01:00
|
|
|
bleach
|
2021-12-15 08:19:40 +01:00
|
|
|
dnspython
|
2020-06-03 09:37:55 +02:00
|
|
|
vobject
|
|
|
|
pyproj
|
2021-12-17 17:40:43 +01:00
|
|
|
unidecode
|
2020-06-03 09:37:55 +02:00
|
|
|
django-ratelimit<3
|
2023-04-14 12:36:19 +02:00
|
|
|
emoji
|
2022-11-29 17:33:30 +01:00
|
|
|
phonenumbers
|
2020-06-03 09:37:55 +02:00
|
|
|
gadjo
|
2022-07-21 17:48:49 +02:00
|
|
|
pyquery
|
|
|
|
lxml
|
2024-04-03 17:51:36 +02:00
|
|
|
psutil
|
|
|
|
freezegun
|
2023-02-15 17:31:36 +01:00
|
|
|
Pillow
|
2023-03-20 17:59:18 +01:00
|
|
|
django>=3.2,<3.3
|
2020-06-03 09:37:55 +02:00
|
|
|
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
|
2016-05-12 21:31:16 +02:00
|
|
|
deps =
|
2020-06-03 09:37:55 +02:00
|
|
|
pylint
|
2016-05-12 21:31:16 +02:00
|
|
|
commands =
|
2020-06-03 09:37:55 +02:00
|
|
|
/bin/bash -c "./pylint.sh wcs_olap"
|
2020-01-30 21:03:06 +01:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
junit_family=xunit2
|