aboutsummaryrefslogtreecommitdiff
blob: 9269d403428ac744281887951b59f007fbcca59d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: python
python:
    - 2.7
    - 3.6
    - 3.7
    - 3.8
    - 3.9-dev
    - pypy3

# 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/-dev/} == ?.? ]]; then
        TOX_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION/-dev/};
        tox -e py${TOX_PYTHON_VERSION/./};
      else
        tox -e ${TRAVIS_PYTHON_VERSION};
      fi