mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 23:27:49 +01:00
d9ae4be2b3
* Add 3.7 to travis build matrix using workaround See https://github.com/travis-ci/travis-ci/issues/9815 for workaround discussion * Add 3.7 to pypi classifiers * Format build matrix differently * Try adding pypy6.0.0 to travis build matrix * Add py3.7 to appveyor * Try pypy 5.10.1 instead 6.0.0 isn't on travis yet: https://github.com/travis-ci/travis-ci/issues/9542 * pypy2-5.10.0 isn't on travis yet either... * allow failures on travis pypy
47 lines
1,023 B
YAML
47 lines
1,023 B
YAML
language: python
|
|
matrix:
|
|
include:
|
|
- python: 2.7
|
|
- python: 3.4
|
|
- python: 3.5
|
|
- python: 3.6
|
|
- python: 3.7
|
|
dist: xenial
|
|
sudo: true
|
|
- python: pypy2.7-5.10.0
|
|
- python: pypy3.5-5.10.1
|
|
allow_failures:
|
|
- python: pypy2.7-5.10.0
|
|
- python: pypy3.5-5.10.1
|
|
|
|
dist: trusty
|
|
sudo: false
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^[vV]\d+$/
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
- $HOME/.pre-commit
|
|
before_cache:
|
|
- rm -f $HOME/.cache/pip/log/debug.log
|
|
- rm -f $HOME/.pre-commit/pre-commit.log
|
|
|
|
install:
|
|
- pip install -U codecov pytest-cov
|
|
- echo $TRAVIS_PYTHON_VERSION
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.7'* ]]; then pip install -U git+https://github.com/yaml/pyyaml.git; fi
|
|
- pip install -U -r requirements.txt
|
|
- pip install -U -r requirements-dev.txt
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
|
|
|
|
script:
|
|
- pytest -v -m nocoverage
|
|
- pytest -v -m "not nocoverage" --cov
|
|
|
|
after_success:
|
|
- coverage combine
|
|
- codecov -F Travis
|