2018-07-21 15:57:26 -04:00
|
|
|
dist: xenial
|
2018-07-21 16:02:38 -04:00
|
|
|
sudo: true
|
2018-05-25 02:03:25 -04:00
|
|
|
language: python
|
2018-07-28 21:08:04 -04:00
|
|
|
python: "3.7"
|
2018-05-25 02:03:25 -04:00
|
|
|
|
2018-07-28 20:52:54 -04:00
|
|
|
jobs:
|
|
|
|
include:
|
2018-06-13 20:57:57 -04:00
|
|
|
|
2018-07-28 20:52:54 -04:00
|
|
|
- stage: code quality
|
|
|
|
name: "pylint & mypy"
|
|
|
|
install:
|
2018-07-28 20:57:50 -04:00
|
|
|
- pip install git+https://github.com/PyCQA/pylint.git
|
|
|
|
- pip install mypy
|
2018-07-28 20:52:54 -04:00
|
|
|
- pip install -e .
|
|
|
|
script:
|
|
|
|
- pylint --rcfile=setup.cfg torba
|
|
|
|
- mypy torba
|
2018-07-28 23:02:12 -04:00
|
|
|
after_success: skip
|
2018-05-25 02:03:25 -04:00
|
|
|
|
2018-07-28 23:43:17 -04:00
|
|
|
- &tests
|
|
|
|
stage: tests
|
|
|
|
env: TESTTYPE=unit
|
2018-07-28 21:08:04 -04:00
|
|
|
install:
|
2018-07-28 22:49:16 -04:00
|
|
|
- pip install tox-travis
|
2018-07-28 23:43:17 -04:00
|
|
|
script: tox
|
|
|
|
- <<: *tests
|
2018-07-28 22:49:16 -04:00
|
|
|
python: "3.6"
|
2018-07-28 23:43:17 -04:00
|
|
|
- <<: *tests
|
|
|
|
env: TESTTYPE=integration
|
2018-07-28 20:52:54 -04:00
|
|
|
install:
|
2018-07-28 22:49:16 -04:00
|
|
|
- pip install tox-travis
|
2018-07-28 20:52:54 -04:00
|
|
|
- pushd .. && git clone https://github.com/lbryio/electrumx.git --branch lbryumx && popd
|
|
|
|
- pushd .. && git clone https://github.com/lbryio/orchstr8.git && popd
|
2018-07-28 22:49:16 -04:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- pip install coverage
|
|
|
|
- coverage combine tests/
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2018-07-28 23:49:51 -04:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
- $TRAVIS_BUILD_DIR/.tox
|