lbry-sdk/.travis.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2019-12-05 18:30:37 -05:00
dist: xenial
2017-02-15 11:10:40 -06:00
language: python
2018-07-29 00:24:38 -04:00
python: "3.7"
2017-02-15 11:10:40 -06:00
2018-07-21 19:32:05 -04:00
jobs:
include:
2017-10-25 12:26:04 -04:00
2020-01-03 01:50:16 -05:00
- stage: code quality
name: "pylint & mypy"
install:
- make install tools
script: make lint
2018-07-26 19:18:48 -04:00
- stage: test
name: "Unit Tests"
2018-07-26 19:18:48 -04:00
install:
2019-12-07 23:38:54 -05:00
- make install tools
script:
- HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
- name: "Integration Tests - Data Network"
2019-01-23 18:04:16 -05:00
install:
- pip install tox-travis
2019-08-21 12:51:02 -03:00
- sudo mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp
script: tox -e datanetwork
- name: "Integration Tests - Blockchain"
install:
- pip install tox-travis
- sudo mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp
script: tox -e blockchain
- name: "Integration Tests - Other"
install:
- pip install tox-travis
- sudo mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp
script: tox -e other
2019-04-06 16:29:59 -04:00
- name: "Run Examples"
install:
2019-12-07 23:38:54 -05:00
- make install tools
2019-04-06 16:29:59 -04:00
script:
- HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
2018-07-06 18:31:35 -04:00
cache:
directories:
2019-06-24 22:23:28 -04:00
- $HOME/venv
2018-07-06 18:31:35 -04:00
- $HOME/.cache/pip
- $HOME/Library/Caches/pip
2019-06-24 23:03:39 -04:00
- $HOME/Library/Caches/Homebrew
2018-07-06 18:31:35 -04:00
- $TRAVIS_BUILD_DIR/.tox