python-telegram-bot/.travis.yml

40 lines
805 B
YAML
Raw Normal View History

2015-07-07 21:50:36 +02:00
language: python
python:
- "2.7"
- "3.4"
- "3.5"
2017-02-05 20:40:16 +01:00
- "3.6"
2018-05-08 14:51:56 +02:00
- "3.7-dev"
- "pypy-5.7.1"
dist: trusty
sudo: false
branches:
only:
- master
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
2015-08-11 19:40:20 +02:00
install:
- pip install -U codecov pytest-cov
2018-05-08 14:51:56 +02:00
- 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
2015-08-11 19:40:20 +02:00
script:
- pytest -v -m nocoverage
- pytest -v -m "not nocoverage" --cov
after_success:
- coverage combine
- codecov -F Travis