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
|
|
|
|
2019-01-22 17:45:36 -05:00
|
|
|
- stage: test
|
2019-12-31 14:52:57 -05:00
|
|
|
name: "Unit Tests"
|
2018-07-26 19:18:48 -04:00
|
|
|
install:
|
2019-12-07 23:38:54 -05:00
|
|
|
- make install tools
|
2018-10-15 23:04:04 -04:00
|
|
|
script:
|
2019-12-31 18:57:48 -05:00
|
|
|
- HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
|
2018-08-22 01:12:46 -03:00
|
|
|
|
2020-01-03 02:09:49 -05:00
|
|
|
- name: "Integration Tests - Data Network"
|
2019-01-23 18:04:16 -05:00
|
|
|
install:
|
2020-01-03 02:09:49 -05:00
|
|
|
- pip install tox-travis
|
2019-08-21 12:51:02 -03:00
|
|
|
- sudo mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp
|
2020-01-03 02:09:49 -05:00
|
|
|
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-05-24 16:14:47 -04:00
|
|
|
|
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:
|
2019-12-31 18:57:48 -05:00
|
|
|
- HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
|
2019-08-20 15:11:52 -04:00
|
|
|
|
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
|