language: python | |
python: | |
- 2.7 | |
- 3.5 | |
- 3.6 | |
- 3.7 | |
- 3.8-dev | |
- pypy | |
# 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 |