2015-07-07 21:50:36 +02:00
|
|
|
language: python
|
2018-10-01 20:50:44 +02:00
|
|
|
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
|
2019-02-09 18:26:17 +01:00
|
|
|
dist: xenial
|
2018-10-01 20:50:44 +02:00
|
|
|
- python: pypy3.5-5.10.1
|
2019-02-09 18:26:17 +01:00
|
|
|
dist: xenial
|
2018-10-01 20:50:44 +02:00
|
|
|
allow_failures:
|
|
|
|
- python: pypy2.7-5.10.0
|
|
|
|
- python: pypy3.5-5.10.1
|
2017-06-22 15:49:46 +02:00
|
|
|
|
2017-06-22 18:09:29 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
|
2016-10-14 11:23:36 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-10-01 11:46:48 +02:00
|
|
|
- /^[vV]\d+$/
|
2017-06-22 15:49:46 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
2017-08-11 23:58:41 +02:00
|
|
|
- $HOME/.pre-commit
|
2017-06-22 15:49:46 +02:00
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.cache/pip/log/debug.log
|
2017-08-11 23:58:41 +02:00
|
|
|
- rm -f $HOME/.pre-commit/pre-commit.log
|
2017-06-22 15:49:46 +02:00
|
|
|
|
2015-08-11 19:40:20 +02:00
|
|
|
install:
|
2017-09-09 23:38:19 +02:00
|
|
|
- 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
|
2017-08-11 23:58:41 +02:00
|
|
|
- pip install -U -r requirements.txt
|
|
|
|
- pip install -U -r requirements-dev.txt
|
2016-08-26 10:23:17 +02:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
|
2017-06-22 15:49:46 +02:00
|
|
|
|
2015-08-11 19:40:20 +02:00
|
|
|
script:
|
2017-09-09 23:37:07 +02:00
|
|
|
- pytest -v -m nocoverage
|
|
|
|
- pytest -v -m "not nocoverage" --cov
|
2017-06-22 15:49:46 +02:00
|
|
|
|
2015-08-11 19:13:02 +02:00
|
|
|
after_success:
|
2017-09-01 08:44:45 +02:00
|
|
|
- coverage combine
|
2018-02-18 16:11:04 +01:00
|
|
|
- codecov -F Travis
|