lbry-sdk/.travis.yml

49 lines
1.6 KiB
YAML
Raw Normal View History

2018-07-21 22:24:37 +02:00
sudo: true
2018-07-22 01:32:05 +02:00
dist: xenial
2017-02-15 18:10:40 +01:00
language: python
2018-07-07 00:31:35 +02:00
python:
- "3.7"
2017-02-15 18:10:40 +01:00
2018-07-22 01:32:05 +02:00
jobs:
include:
2017-10-25 18:26:04 +02:00
- stage: code quality
2018-07-22 01:32:05 +02:00
name: "pylint lbrynet"
install:
- pip install pylint
- pip install git+https://github.com/lbryio/torba.git
- pip install git+https://github.com/lbryio/lbryschema.git
- pip install -e .
script: pylint lbrynet
- stage: test
2018-07-22 01:32:05 +02:00
name: "Unit Tests"
install:
- pip install coverage
- pip install git+https://github.com/lbryio/torba.git
- pip install git+https://github.com/lbryio/lbryschema.git
- pip install -e .[test]
script: HOME=/tmp coverage run --source=lbrynet -m twisted.trial tests.unit
#script: HOME=/tmp coverage run --source=lbrynet -m twisted.trial tests.functional tests.unit
2018-07-22 01:32:05 +02:00
after_success:
- bash <(curl -s https://codecov.io/bash)
2018-07-07 00:31:35 +02:00
2018-07-22 01:32:05 +02:00
- name: "Integration Tests"
install:
- pip install tox-travis coverage
- pushd .. && git clone https://github.com/lbryio/electrumx.git --branch lbryumx && popd
- pushd .. && git clone https://github.com/lbryio/orchstr8.git && popd
- pushd .. && git clone https://github.com/lbryio/lbryschema.git && popd
- pushd .. && git clone https://github.com/lbryio/lbryumx.git && popd
- pushd .. && git clone https://github.com/lbryio/torba.git && popd
script: tox
after_success:
- coverage combine tests/
- bash <(curl -s https://codecov.io/bash)
2018-07-07 00:31:35 +02:00
cache:
directories:
- $HOME/.cache/pip
- $HOME/Library/Caches/pip
- $TRAVIS_BUILD_DIR/.tox