aboutsummaryrefslogtreecommitdiff
blob: ab0b8d304257339b52ad3e0f4c0a2e5ea82ac0fe (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
language: python
python:
    - 2.7
    - 3.4
    - 3.5
    - 3.6
    - pypy

# See https://github.com/travis-ci/travis-ci/issues/9815
matrix:
  include:
    - python: 3.7
      dist: xenial
      sudo: required

# command to install dependencies
install:
    - pip install tox

script:
    - printf "[build_ext]\nportage-ext-modules=true" >> setup.cfg
    - ./setup.py test
    - ./setup.py install --root=/tmp/install-root
    - if [[ ${TRAVIS_PYTHON_VERSION} == ?.? ]]; then
        tox -e py${TRAVIS_PYTHON_VERSION/./};
      else
        tox -e ${TRAVIS_PYTHON_VERSION};
      fi