Files
django-anymail/tox.ini
2019-01-17 11:14:01 -08:00

98 lines
2.2 KiB
INI

[tox]
envlist =
# Test these environments first, to catch most errors early...
lint
django21-py36
django111-py27
docs
# ... then test all the other supported combinations:
django21-py{35,37,py3}
django20-py{35,36,py3}
django111-py{34,35,36,py}
# ... then prereleases (if available):
django22-py{35,36,37}
djangoMaster-py{36,37}
[testenv]
deps =
django111: django~=1.11.0
django20: django~=2.0.0
django21: django~=2.1.0
django22: django>=2.2a1
djangoMaster: https://github.com/django/django/tarball/master
# testing dependencies (duplicates setup.py tests_require):
mock
boto3
sparkpost
ignore_outcome =
djangoMaster: True
usedevelop = True
args_are_paths = False
commands =
python --version
# pip install .[mailgun,...,sparkpost] ## usedevelop=True + manual deps is much faster on repeat runs
python runtests.py {posargs}
passenv =
RUN_LIVE_TESTS
CONTINUOUS_INTEGRATION
AMAZON_SES_TEST_*
MAILGUN_TEST_*
MAILJET_TEST_*
MANDRILL_TEST_*
POSTMARK_TEST_*
SENDINBLUE_TEST_*
SENDGRID_TEST_*
SPARKPOST_TEST_*
[testenv:lint]
basepython = python3
skip_install = True
passenv =
CONTINUOUS_INTEGRATION
# (but not any of the live test API keys)
deps =
flake8
commands =
python --version
flake8 --version
flake8
[testenv:docs]
basepython = python3
skip_install = True
passenv =
CONTINUOUS_INTEGRATION
# (but not any of the live test API keys)
setenv =
DOCS_BUILD_DIR={envdir}/_html
whitelist_externals = /bin/bash
deps =
sphinx
sphinx-rtd-theme
commands =
# Verify README.rst as used in setup.py long_description:
python setup.py check --restructuredtext --strict
# Build and verify docs:
sphinx-build -W -b dirhtml docs {env:DOCS_BUILD_DIR}
# Build README.rst into html:
/bin/bash -c 'python setup.py --long-description \
| rst2html5.py --config=docs/_readme/docutils.cfg \
> {env:DOCS_BUILD_DIR}/readme.html'
[travis]
unignore_outcomes = True
python =
3.6: py36, lint, docs
[travis:env]
DJANGO =
1.11: django111
2.0: django20
2.1: django21
2.2: django22
master: djangoMaster
LINT_AND_DOCS =
true: lint, docs
docs: docs
lint: lint