2015-07-07 21:50:36 +02:00
|
|
|
language: python
|
|
|
|
python:
|
2015-07-15 15:05:31 +02:00
|
|
|
- "2.7"
|
|
|
|
- "3.4"
|
2016-03-17 22:12:36 +01:00
|
|
|
- "3.5"
|
2017-02-05 20:40:16 +01:00
|
|
|
- "3.6"
|
2017-06-22 19:31:52 +02:00
|
|
|
- "pypy-5.7.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
|
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
|
2017-06-22 16:28:13 +02:00
|
|
|
- pip install -U wheel
|
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
|