run torba unit tests the way lex runs them

This commit is contained in:
Alex Grintsvayg 2019-12-16 12:59:15 -05:00
parent 505652efa0
commit 099b0b65c0
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -29,29 +29,25 @@ test:lbry-unit:
- make install tools - make install tools
- cd lbry && HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit - cd lbry && HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
test:lbry-integ: test:lbry-integ:
stage: test stage: test
script: script:
- pip install coverage tox-travis - pip install coverage tox-travis
- cd lbry && tox - cd lbry && tox
test:torba-unit:
.torba-tests: &torba_tests
stage: test stage: test
script: script:
- pip install coverage tox-travis - pip install coverage tox-travis
- cd torba && tox - cd torba/tests
- tox -e py37-unit
test:torba-unit:
before_script:
- export TESTTYPE=unit
<<: *torba_tests
test:torba-integ: test:torba-integ:
before_script: stage: test
- export TESTTYPE=integration script:
<<: *torba_tests - pip install coverage tox-travis
- cd torba/tests
- tox -e py37-integration-torba.coin.bitcoinsegwit
test:json-api: test:json-api:
stage: test stage: test