1sudo: false
2language: python
3cache: pip
4python:
5  - "2.7"
6  - "3.3"
7  - "3.4"
8  - "3.5"
9  - "3.6"
10  - "nightly"
11  - "pypy-5.4"
12  - "pypy3"
13env:
14  TOXENV=py
15
16matrix:
17  fast_finish: true
18  include:
19    - python: 3.6
20      env: TOXENV=docs
21    - python: 3.6
22      env: TOXENV=tz
23    - python: 3.7
24      # This is required until Travis has a default image that
25      # can run Python 3.7
26      dist: xenial
27      sudo: required
28  allow_failures:
29    - python: "nightly"
30
31install:
32  - pip install -U six && pip install -U tox
33  - if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then pip install 'virtualenv<16.0'; fi
34  - if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then pip install 'setuptools<40.0'; fi
35  - if [[ $TOXENV == "py" ]]; then ./ci_tools/retry.sh python updatezinfo.py; fi
36
37script:
38  - tox
39
40after_success:
41  - if [[ $TOXENV == "py" ]]; then tox -e coverage,codecov; fi
42
43