lbry-sdk/.travis.yml

40 lines
877 B
YAML
Raw Normal View History

2019-12-06 00:30:37 +01:00
dist: xenial
2017-02-15 18:10:40 +01:00
language: python
2018-07-29 06:24:38 +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
# name: "pylint & mypy"
# install:
# - make install tools
# script: make lint
2018-07-27 01:18:48 +02:00
- stage: test
name: "Unit Tests"
2018-07-27 01:18:48 +02:00
install:
2019-12-08 05:38:54 +01:00
- make install tools
script:
- HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
- name: "Integration Tests"
2019-01-24 00:04:16 +01:00
install:
2019-06-20 22:06:21 +02:00
- pip install coverage tox-travis
2019-08-21 17:51:02 +02:00
- sudo mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp
script: tox
2019-04-06 22:29:59 +02:00
- name: "Run Examples"
install:
2019-12-08 05:38:54 +01:00
- make install tools
2019-04-06 22:29:59 +02:00
script:
- HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
2018-07-07 00:31:35 +02:00
cache:
directories:
2019-06-25 04:23:28 +02:00
- $HOME/venv
2018-07-07 00:31:35 +02:00
- $HOME/.cache/pip
- $HOME/Library/Caches/pip
2019-06-25 05:03:39 +02:00
- $HOME/Library/Caches/Homebrew
2018-07-07 00:31:35 +02:00
- $TRAVIS_BUILD_DIR/.tox