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
- cd lbry && HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
test:lbry-integ:
stage: test
script:
- pip install coverage tox-travis
- cd lbry && tox
.torba-tests: &torba_tests
test:torba-unit:
stage: test
script:
- pip install coverage tox-travis
- cd torba && tox
test:torba-unit:
before_script:
- export TESTTYPE=unit
<<: *torba_tests
- cd torba/tests
- tox -e py37-unit
test:torba-integ:
before_script:
- export TESTTYPE=integration
<<: *torba_tests
stage: test
script:
- pip install coverage tox-travis
- cd torba/tests
- tox -e py37-integration-torba.coin.bitcoinsegwit
test:json-api:
stage: test