2018-07-21 21:57:26 +02:00
|
|
|
dist: xenial
|
2018-07-21 22:02:38 +02:00
|
|
|
sudo: true
|
2018-05-25 08:03:25 +02:00
|
|
|
language: python
|
2018-07-29 03:08:04 +02:00
|
|
|
python: "3.7"
|
2018-05-25 08:03:25 +02:00
|
|
|
|
2018-07-29 02:52:54 +02:00
|
|
|
jobs:
|
|
|
|
include:
|
2018-06-14 02:57:57 +02:00
|
|
|
|
2018-07-29 02:52:54 +02:00
|
|
|
- stage: code quality
|
|
|
|
name: "pylint & mypy"
|
|
|
|
install:
|
2019-02-26 21:46:47 +01:00
|
|
|
- pip install astroid==2.0.4
|
2019-01-06 22:05:52 +01:00
|
|
|
# newer astroid and aiohttp fails in pylint so we pre-install older version
|
2018-11-26 02:54:59 +01:00
|
|
|
- pip install pylint mypy
|
2018-11-21 04:59:58 +01:00
|
|
|
- pip install -e .
|
2018-07-29 02:52:54 +02:00
|
|
|
script:
|
|
|
|
- pylint --rcfile=setup.cfg torba
|
2018-10-15 06:04:25 +02:00
|
|
|
- mypy --ignore-missing-imports torba
|
2018-07-29 05:02:12 +02:00
|
|
|
after_success: skip
|
2018-05-25 08:03:25 +02:00
|
|
|
|
2018-07-29 05:43:17 +02:00
|
|
|
- &tests
|
|
|
|
stage: tests
|
|
|
|
env: TESTTYPE=unit
|
2018-07-29 03:08:04 +02:00
|
|
|
install:
|
2018-07-29 04:49:16 +02:00
|
|
|
- pip install tox-travis
|
2018-07-29 05:43:17 +02:00
|
|
|
script: tox
|
|
|
|
- <<: *tests
|
|
|
|
env: TESTTYPE=integration
|
2018-07-29 04:49:16 +02:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- pip install coverage
|
|
|
|
- coverage combine tests/
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2018-07-29 05:49:51 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
- $TRAVIS_BUILD_DIR/.tox
|