Files
django-anymail/.travis.yml
medmunds 3013eaf24b Travis: Xenial pypy currently requires explicit versions
"At the moment" Travis Xenial environment can't resolve
`python=pypy` or `python=pypy3` unless you include the specific
pypy version number.

https://travis-ci.community/t/pypy-2-7-on-xenial/889/4
https://travis-ci.community/t/pypy-2-7-on-xenial/889/5
2019-01-17 11:27:40 -08:00

57 lines
1.7 KiB
YAML

sudo: false
language: python
dist: xenial
branches:
# Only run builds on release branches.
# (Builds will *also* still run on pull requests;
# this avoids duplicate builds on the PR *branches*, too.)
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
matrix:
include:
- { env: LINT_AND_DOCS=true, python: 3.6 }
# Anymail supports the same Python versions as Django, plus PyPy.
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
# Live API integration tests are only run on a few, representative Python/Django version
# combinations, to avoid rapidly consuming the testing accounts' entire send allotments.
# Django 1.11: Python 2.7, 3.4, 3.5, or 3.6
- { env: DJANGO=1.11 RUN_LIVE_TESTS=true, python: 2.7 }
- { env: DJANGO=1.11, python: 3.4 }
- { env: DJANGO=1.11, python: 3.5 }
- { env: DJANGO=1.11, python: 3.6 }
- { env: DJANGO=1.11, python: pypy2.7-6.0 }
# Django 2.0: Python 3.5+
- { env: DJANGO=2.0, python: 3.5 }
- { env: DJANGO=2.0, python: 3.6 }
- { env: DJANGO=2.0, python: pypy3.5-6.0 }
# Django 2.1: Python 3.5, 3.6, or 3.7
- { env: DJANGO=2.1, python: 3.5 }
- { env: DJANGO=2.1 RUN_LIVE_TESTS=true, python: 3.6 }
- { env: DJANGO=2.1, python: 3.7 }
- { env: DJANGO=2.1, python: pypy3.5-6.0 }
# Django 2.2: Python 3.5, 3.6, or 3.7
- { env: DJANGO=2.2, python: 3.5 }
- { env: DJANGO=2.2, python: 3.6 }
- { env: DJANGO=2.2, python: 3.7 }
- { env: DJANGO=2.2, python: pypy3.5-6.0 }
# Django development master (direct from GitHub source):
- { env: DJANGO=master, python: 3.6 }
allow_failures:
- env: DJANGO=master
python: 3.6
cache: pip
install:
- pip install tox-travis
script:
- tox