2019-07-12 00:45:15 +00:00
|
|
|
dist: xenial
|
2018-01-09 03:16:18 +00:00
|
|
|
language: python
|
2019-07-12 00:49:39 +00:00
|
|
|
cache:
|
|
|
|
pip: true
|
|
|
|
directories:
|
|
|
|
- "$HOME/.cache/pypoetry"
|
2018-01-09 03:16:18 +00:00
|
|
|
python:
|
2019-07-12 01:00:18 +00:00
|
|
|
- "2.7"
|
2018-01-09 03:16:18 +00:00
|
|
|
- "3.5"
|
|
|
|
- "3.6"
|
2019-07-12 00:45:15 +00:00
|
|
|
- "3.7"
|
2019-12-23 22:40:50 +00:00
|
|
|
- "3.8"
|
2019-07-12 00:45:15 +00:00
|
|
|
before_install:
|
|
|
|
- pip install poetry==0.12.17
|
2018-01-09 03:16:18 +00:00
|
|
|
install:
|
2019-07-12 00:45:15 +00:00
|
|
|
- env -u VIRTUAL_ENV poetry install
|
|
|
|
script:
|
|
|
|
- env -u VIRTUAL_ENV poetry run pytest
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then (env -u VIRTUAL_ENV poetry run black --check .); fi
|
2018-01-09 03:16:18 +00:00
|
|
|
after_success:
|
2019-10-14 01:58:32 +00:00
|
|
|
- env -u VIRTUAL_ENV poetry run pip install codecov
|
2019-07-12 00:45:15 +00:00
|
|
|
- env -u VIRTUAL_ENV poetry run codecov
|