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
|
|
|
|
2019-12-31 21:01:14 +01:00
|
|
|
# - stage: code quality
|
|
|
|
# name: "pylint & mypy"
|
|
|
|
# install:
|
|
|
|
# - make install tools
|
|
|
|
# script: make lint
|
2018-07-27 01:18:48 +02:00
|
|
|
|
2019-01-22 23:45:36 +01:00
|
|
|
- stage: test
|
2019-12-31 20:52:57 +01:00
|
|
|
name: "Unit Tests"
|
2018-07-27 01:18:48 +02:00
|
|
|
install:
|
2019-12-08 05:38:54 +01:00
|
|
|
- make install tools
|
2018-10-16 05:04:04 +02:00
|
|
|
script:
|
2020-01-01 00:57:48 +01:00
|
|
|
- HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
|
2018-08-22 06:12:46 +02:00
|
|
|
|
2019-12-31 20:52:57 +01:00
|
|
|
- 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
|
2020-01-01 00:57:48 +01:00
|
|
|
script: tox
|
2019-05-24 22:14:47 +02:00
|
|
|
|
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:
|
2020-01-01 00:57:48 +01:00
|
|
|
- HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
|
2019-08-20 21:11:52 +02:00
|
|
|
|
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
|