summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b56fdfdc7258e5c31b2e40dcf00b3dc284a94333 (plain)
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
language: python
dist: bionic

cache: pip

install:
    # Required so `git describe` will definitely find a tag; see
    # https://github.com/travis-ci/travis-ci/issues/7422
    - git fetch --unshallow
    # Not pinning setuptools can cause failures on python 3.7 and 3.8 builds
    # See https://github.com/pypa/setuptools/issues/3118
    - pip install setuptools==59.6.0
    - pip install tox

script:
    - tox

env:
  TOXENV=py3
  PYTEST_ADDOPTS=-v  # List all tests run by pytest

matrix:
    fast_finish: true
    include:
        - python: 3.6
          env:
            TOXENV=lowest-supported
            PYTEST_ADDOPTS=-v  # List all tests run by pytest
          dist: bionic
        # Test all supported Python versions (but at the end, so we schedule
        # longer-running jobs first)
        - python: 3.12-dev
    allow_failures:
        - python: 3.12-dev