2018-07-24 09:06:53 +02:00
|
|
|
sudo: required
|
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:
|
2018-07-27 00:18:07 +02:00
|
|
|
- "3.6"
|
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
|
|
|
|
2018-07-27 01:18:48 +02:00
|
|
|
- stage: code quality
|
|
|
|
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
|
|
|
|
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]
|
2018-07-27 23:56:13 +02:00
|
|
|
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
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
2018-07-27 01:18:48 +02:00
|
|
|
- name: "Integration Tests"
|
2018-07-28 02:41:24 +02:00
|
|
|
python: "3.7"
|
2018-07-27 01:18:48 +02:00
|
|
|
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
|
|
|
|
2018-07-24 09:06:53 +02:00
|
|
|
- stage: build
|
2018-07-27 01:18:48 +02:00
|
|
|
name: "Windows"
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
install:
|
|
|
|
- docker pull cdrx/pyinstaller-windows:python3-32bit
|
|
|
|
script:
|
|
|
|
- docker run -v "$(pwd):/src/lbry" cdrx/pyinstaller-windows:python3-32bit lbry/scripts/wine_build.sh
|
|
|
|
addons:
|
|
|
|
artifacts:
|
|
|
|
working_dir: dist
|
|
|
|
paths:
|
2018-07-27 04:04:43 +02:00
|
|
|
- lbrynet.exe
|
2018-07-27 01:18:48 +02:00
|
|
|
target_paths:
|
2018-07-27 22:20:10 +02:00
|
|
|
- /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/win/
|
2018-07-27 01:18:48 +02:00
|
|
|
|
|
|
|
- name: "Linux"
|
|
|
|
install:
|
|
|
|
- pip install pyinstaller
|
|
|
|
- pip install git+https://github.com/lbryio/torba.git
|
|
|
|
- pip install git+https://github.com/lbryio/lbryschema.git
|
|
|
|
- pip install -e .
|
|
|
|
script:
|
2018-07-27 04:04:43 +02:00
|
|
|
- pyinstaller -F -n lbrynet lbrynet/cli.py
|
|
|
|
- ./dist/lbrynet --version
|
2018-07-27 01:18:48 +02:00
|
|
|
addons:
|
|
|
|
artifacts:
|
|
|
|
working_dir: dist
|
|
|
|
paths:
|
2018-07-27 04:04:43 +02:00
|
|
|
- lbrynet
|
2018-07-27 22:59:49 +02:00
|
|
|
# artifact uploader thinks lbrynet is a directory, https://github.com/travis-ci/artifacts/issues/78
|
2018-07-27 01:18:48 +02:00
|
|
|
target_paths:
|
2018-07-27 22:59:49 +02:00
|
|
|
- /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/linux/lbrynet
|
2018-07-27 01:18:48 +02:00
|
|
|
|
|
|
|
- name: "Mac"
|
2018-07-27 01:01:44 +02:00
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.4
|
2018-07-27 01:06:03 +02:00
|
|
|
language: generic
|
2018-07-27 00:08:26 +02:00
|
|
|
install:
|
2018-07-27 01:13:14 +02:00
|
|
|
- pip3 install pyinstaller
|
|
|
|
- pip3 install git+https://github.com/lbryio/torba.git
|
|
|
|
- pip3 install git+https://github.com/lbryio/lbryschema.git
|
|
|
|
- pip3 install -e .
|
2018-07-24 09:06:53 +02:00
|
|
|
script:
|
2018-07-27 04:04:43 +02:00
|
|
|
- pyinstaller -F -n lbrynet lbrynet/cli.py
|
|
|
|
- ./dist/lbrynet --version
|
2018-07-27 00:08:26 +02:00
|
|
|
addons:
|
|
|
|
artifacts:
|
|
|
|
working_dir: dist
|
|
|
|
paths:
|
2018-07-27 04:04:43 +02:00
|
|
|
- lbrynet
|
2018-07-27 22:59:49 +02:00
|
|
|
# artifact uploader thinks lbrynet is a directory, https://github.com/travis-ci/artifacts/issues/78
|
2018-07-27 00:08:26 +02:00
|
|
|
target_paths:
|
2018-07-27 22:59:49 +02:00
|
|
|
- /daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})/mac/lbrynet
|
2018-07-24 09:06:53 +02:00
|
|
|
|
2018-07-07 00:31:35 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
- $HOME/Library/Caches/pip
|
|
|
|
- $TRAVIS_BUILD_DIR/.tox
|