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.5
|
|
|
|
- python: 3.6
|
|
|
|
- python: 3.7
|
|
|
|
dist: xenial
|
|
|
|
sudo: true
|
2019-08-28 21:58:58 +02:00
|
|
|
- python: 3.7
|
|
|
|
dist: xenial
|
|
|
|
env: TEST_OFFICIAL=true
|
2018-10-01 20:50:44 +02:00
|
|
|
- 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
|
2019-10-12 15:12:41 +02:00
|
|
|
- python: 3.8-dev
|
|
|
|
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:
|
2019-10-11 20:01:25 +02:00
|
|
|
# fix TypeError from old version of this
|
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
|
2019-10-11 20:01:25 +02:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.7'* ]]; then pip install -U git+https://github.com/yaml/pyyaml.git; else true; fi
|
2017-08-11 23:58:41 +02:00
|
|
|
- pip install -U -r requirements.txt
|
|
|
|
- pip install -U -r requirements-dev.txt
|
2019-10-11 20:01:25 +02:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; else true; fi
|
2017-06-22 15:49:46 +02:00
|
|
|
|
2015-08-11 19:40:20 +02:00
|
|
|
script:
|
2019-10-11 20:01:25 +02:00
|
|
|
- if [[ $TEST_OFFICIAL != 'true' ]]; then pytest -v -m nocoverage; else true; fi
|
|
|
|
- if [[ $TEST_OFFICIAL != 'true' ]]; then pytest -v -m "not nocoverage" --cov; else true; fi
|
|
|
|
- if [[ $TEST_OFFICIAL == 'true' ]]; then pytest -v tests/test_official.py; else true; fi
|
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
|