adding build stages to .travis.yml

This commit is contained in:
Lex Berezhny 2018-07-21 19:32:05 -04:00 committed by Jack Robison
parent e718caca77
commit f05ca137be
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 35 additions and 28 deletions

View file

@ -1,33 +1,44 @@
dist: xenial
sudo: true sudo: true
dist: xenial
language: python language: python
python: python:
- "3.7" - "3.7"
addons: jobs:
apt: include:
packages:
- libgmp3-dev
- build-essential
- libssl-dev
- libffi-dev
install: - stage: lint
- pip install tox-travis coverage name: "pylint lbrynet"
- pushd .. && git clone https://github.com/lbryio/electrumx.git --branch lbryumx && popd install:
- pushd .. && git clone https://github.com/lbryio/orchstr8.git && popd - pip install pylint
- pushd .. && git clone https://github.com/lbryio/lbryschema.git && popd - pip install git+https://github.com/lbryio/torba.git
- pushd .. && git clone https://github.com/lbryio/lbryumx.git && popd - pip install git+https://github.com/lbryio/lbryschema.git
- pushd .. && git clone https://github.com/lbryio/torba.git && popd - pip install -e .
script: pylint lbrynet
script: - stage: tests
- tox name: "Unit Tests"
- rvm install ruby-2.3.1 install:
- rvm use 2.3.1 && gem install danger --version '~> 4.0' && danger - 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]
script: coverage run --source=lbrynet -m twisted.trial tests.functional tests.unit
after_success:
- bash <(curl -s https://codecov.io/bash)
after_success: - name: "Integration Tests"
- coverage combine tests/ install:
- bash <(curl -s https://codecov.io/bash) - 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)
cache: cache:
directories: directories:

View file

@ -1,24 +1,20 @@
[tox] [tox]
envlist = py37 envlist = py37-integration
[testenv] [testenv]
deps = deps =
pylint
coverage coverage
../torba ../torba
../electrumx
../lbryschema ../lbryschema
../electrumx
../lbryumx ../lbryumx
../orchstr8 ../orchstr8
extras = test extras = test
changedir = {toxinidir}/tests changedir = {toxinidir}/tests
setenv = setenv =
HOME=/tmp HOME=/tmp
PYTHONHASHSEED=0
LEDGER=lbrynet.wallet LEDGER=lbrynet.wallet
commands = commands =
pylint --rcfile=../.pylintrc ../lbrynet
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial functional unit
orchstr8 download orchstr8 download
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_transactions.BasicTransactionTest coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_transactions.BasicTransactionTest
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_commands.CommonWorkflowTests coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_commands.CommonWorkflowTests