dist: xenial
language: python
env:
global:
- PYTEST_ADDOPTS="-vv --cov-append"
matrix:
- CI_TARGET=tests
matrix:
include:
- python: pypy
dist: trusty
sudo: false
- python: 3.6
env: CI_TARGET=checkqa TOXENV=checkqa,docs
python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
install:
- if [ $CI_TARGET = tests ]; then
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64";
pip install -q tox-travis;
else
pip install -q tox;
fi
script:
- tox
after_script:
- if [ $CI_TARGET = tests ]; then
set -x;
pip install coverage;
coverage combine;
coverage report -m;
coverage xml;
bash <(curl --retry 5 --silent --fail https://codecov.io/bash) -f coverage.xml;
set +x;
fi