.travis.yml

This commit is contained in:
Lex Berezhny 2018-07-28 22:49:16 -04:00
parent 6be95dceab
commit 2a42bda0a0
2 changed files with 23 additions and 18 deletions

View file

@ -1,7 +1,6 @@
dist: xenial dist: xenial
sudo: true sudo: true
language: python language: python
python: "3.7" python: "3.7"
jobs: jobs:
@ -16,25 +15,25 @@ jobs:
script: script:
- pylint --rcfile=setup.cfg torba - pylint --rcfile=setup.cfg torba
- mypy torba - mypy torba
after_success: skip
- stage: test - &unit-tests
python: stage: unit tests
- "3.6"
- "3.7"
name: "Unit Tests"
install: install:
- pip install tox-travis coverage - pip install tox-travis
script: tox -e unit script: TESTTYPE=unit tox
after_success: - <<: *unit-tests
- coverage combine tests/ python: "3.6"
- bash <(curl -s https://codecov.io/bash)
- name: "Integration Tests" - &integration-tests
stage: integration tests
install: install:
- pip install tox-travis coverage - pip install tox-travis
- pushd .. && git clone https://github.com/lbryio/electrumx.git --branch lbryumx && popd - 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/orchstr8.git && popd
script: tox -e integration script: TESTTYPE=integration tox
after_success:
- coverage combine tests/ after_success:
- bash <(curl -s https://codecov.io/bash) - pip install coverage
- coverage combine tests/
- bash <(curl -s https://codecov.io/bash)

View file

@ -2,6 +2,11 @@
#envlist = unit,integration-{torba.coin.bitcoincash,torba.coin.bitcoinsegwit} #envlist = unit,integration-{torba.coin.bitcoincash,torba.coin.bitcoinsegwit}
envlist = py37-unit,py37-integration-torba.coin.bitcoinsegwit envlist = py37-unit,py37-integration-torba.coin.bitcoinsegwit
[travis:env]
TESTTYPE =
unit: unit
integration: integration
[testenv] [testenv]
deps = deps =
coverage coverage
@ -9,7 +14,8 @@ deps =
integration: ../electrumx integration: ../electrumx
extras = test extras = test
changedir = {toxinidir}/tests changedir = {toxinidir}/tests
setenv = integration: LEDGER={envname} setenv =
integration: LEDGER={envname}
commands = commands =
unit: coverage run -p --source={envsitepackagesdir}/torba -m twisted.trial unit unit: coverage run -p --source={envsitepackagesdir}/torba -m twisted.trial unit
integration: orchstr8 download integration: orchstr8 download