2016-09-28 15:10:15 +02:00
|
|
|
language: python
|
2017-03-26 04:39:24 +02:00
|
|
|
sudo: false
|
2017-03-25 05:00:42 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python: 2.6
|
|
|
|
env: TOXENV=py26
|
|
|
|
- python: 2.7
|
|
|
|
env: TOXENV=py27
|
|
|
|
- python: 3.3
|
|
|
|
env: TOXENV=py33
|
|
|
|
- python: 3.4
|
|
|
|
env: TOXENV=py34
|
|
|
|
- python: 3.5
|
|
|
|
env: TOXENV=py35
|
|
|
|
- python: 3.6
|
|
|
|
env: TOXENV=py36
|
|
|
|
- python: 3.7-dev
|
|
|
|
env: TOXENV=py37
|
|
|
|
- python: nightly
|
|
|
|
env: TOXENV=py37
|
|
|
|
- python: pypy
|
|
|
|
env: TOXENV=pypy
|
|
|
|
- python: pypy3
|
|
|
|
env: TOXENV=pypy3
|
|
|
|
- python: pypy3.3-5.2-alpha1
|
|
|
|
env: TOXENV=pypy3
|
|
|
|
- python: pypy3.3-5.5-alpha
|
|
|
|
env: TOXENV=pypy3
|
|
|
|
allow_failures:
|
|
|
|
- python: pypy3
|
|
|
|
- python: 3.7-dev
|
|
|
|
- python: nightly
|
2016-09-28 15:10:15 +02:00
|
|
|
install:
|
2017-03-25 05:00:42 +01:00
|
|
|
- pip install --upgrade tox coveralls codecov
|
2016-09-28 15:10:15 +02:00
|
|
|
script:
|
2017-03-26 05:47:31 +02:00
|
|
|
- |
|
|
|
|
if [ -z "${TOXENV##*py3*}" ]; then
|
2017-03-25 05:00:42 +01:00
|
|
|
if [ -z "${TOXENV##*pypy3*}" ]; then
|
2017-03-26 05:47:31 +02:00
|
|
|
_pydir=$(dirname $(which python))
|
|
|
|
ln -s -- "${_pydir}/python" "${_pydir}/pypy3"
|
|
|
|
export TOXENV=${TOXENV}-test,${TOXENV}-lint
|
2017-03-25 05:00:42 +01:00
|
|
|
else
|
2017-03-26 05:47:31 +02:00
|
|
|
export TOXENV=${TOXENV}-test,${TOXENV}-type,${TOXENV}-lint
|
2017-03-25 05:00:42 +01:00
|
|
|
fi
|
|
|
|
else
|
2017-03-26 05:47:31 +02:00
|
|
|
export TOXENV=${TOXENV}-test,${TOXENV}-lint
|
2017-03-25 05:00:42 +01:00
|
|
|
fi
|
2017-03-26 04:39:24 +02:00
|
|
|
- tox -e $TOXENV,cov
|
2016-10-10 12:05:25 +02:00
|
|
|
after_success:
|
|
|
|
- coveralls
|
2017-03-25 05:00:42 +01:00
|
|
|
- codecov
|
|
|
|
after_failure:
|
|
|
|
- cat .tox/log/*
|
|
|
|
- cat .tox/*/log/*
|