57 lines
1.2 KiB
INI
57 lines
1.2 KiB
INI
# 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}
|
|
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
|
|
|
|
# w.c.s. dependencies, as it cannot b installed through pip
|
|
quixote>=3,<3.2
|
|
psycopg2-binary
|
|
vobject
|
|
pyproj
|
|
django-ratelimit<3
|
|
gadjo
|
|
django>=1.11,<1.12
|
|
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
|