File: tox.ini

package info (click to toggle)
python-django-contact-form 1.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 232 kB
  • sloc: python: 489; makefile: 187
file content (46 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Tox (https://tox.readthedocs.io/) 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]
envlist =
  {py27}-django{18,110,111}
  {py33}-django{18}
  {py34,py35}-django{18,110,111}
  {py36}-django{111}
  docs

[testenv:docs]
basepython = python
changedir = docs
deps =
     sphinx
     sphinx_rtd_theme
commands=
    sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv]
commands =
  coverage run setup.py test
  coverage report -m
  flake8 contact_form
deps =
  -rtest_requirements.txt
  django18: Django>=1.8,<1.9
  django110: Django>=1.10,<1.11
  django111: Django>=1.11
passenv =
  PYTHON_AKISMET_API_KEY
  PYTHON_AKISMET_BLOG_URL
setenv =
  CI=true

[travis]
python =
  2.7: py27
  3.3: py33
  3.4: py34
  3.5: py35
  3.6: py36, docs