forked from django-salesforce/django-salesforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
93 lines (87 loc) · 2.83 KB
/
tox.ini
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# The easy usage for all test environments:
# pip install tox
# tox
[tox]
# This configuration file needs `tox 2.6+`, `pip 1.4+` or higher.
# If a Python 3.5 environment should be tested, also `setuptools 10.0+`
# is necesary to be installed in the in the Python used by`tox`
# command. (The easiest: Simply install tox to python3.5 and run
# tox from there.)
minversion = 2.6
envlist = docs_style, py37-dj21, py36-dj20, py27-dj111, py35-dj110, py36-dj22b, py36-no_django
# Explicit combinations can be tested even though are not listed in ALL:
# `tox -e py35-dj110,py35-djdev`
# `tox -e docs` # test documentation
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
pypy: pypy
pypy3: pypy3
deps =
dj110: Django~=1.10.8
dj111: Django~=1.11.17
dj20: Django~=2.0.9
dj21: Django~=2.1.4
dj22b: Django~=2.2b1
py27: mock
pylint: pylint
pylint: pylint-django
# dj22: https://www.djangoproject.com/download/2.2rc1/tarball/
djdev: https://github.com/django/django/archive/master.zip
# local copy of django/origin master
# wget https://github.com/django/django/archive/master.zip -O django-22-dev.zip
djdevlocal: django-22-dev.zip
coverage
# This Beatbox version works with Python 3 and 2.
# Be hopeful, it will be soon in official repositories.
git+https://github.com/hynekcer/beatbox-davisagli.git@7f628a789cba#egg=beatbox
-rrequirements.txt
commands =
{envpython} manage.py test salesforce
{toxinidir}/tests/tests.sh
setenv =
# all bugs can be reported by the command `QUIET_KNOWN_BUGS=off tox`
# otherwise known bugs are silent
QUIET_KNOWN_BUGS={env:QUIET_KNOWN_BUGS:on}
passenv = SLOW_TESTS
# These other environments are tested by `tox -e ALL`:
# (Especially useful is to add highest contra lowest Django combinations)
[testenv:py27-dj110]
[testenv:py37-dj111]
[testenv:py34-dj20]
[testenv:py35-dj21]
[testenv:py36-djdev]
[testenv:py36-dj21-pylint]
setenv = DJANGO_SETTINGS_MODULE=salesforce.testrunner.settings
commands = pylint --reports=no salesforce
[testenv:py36-no_django]
usedevelop=True
whitelist_externals = rm
deps = requests>=2.4.0
commands =
rm -rf {envsitepackagesdir}/django
{toxinidir}/tests/tests_no_django.sh
[testenv:docs_style]
# check Python code style and rst syntax
basepython = python3
skip_install = True
deps =
flake8
rstcheck
commands =
flake8
rstcheck README.rst
# === lint configurations (not tests) ===
[flake8]
max-line-length = 119
exclude=.git,.tox,.env,.eggs,build,models1*.py,packages_,tests/inspectdb/models.py,tests/tooling/models.py
[pep8]
max-line-length = 119
exclude=.git,.tox,.env,.eggs,build,models1*.py,packages_,tests/inspectdb/models.py,tests/tooling/models.py
[pyflakes]
# ignore E126 continuation line over-indented for hanging indent
# ignore=E126