mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Updates circleci
Dependencies now also include dev-requirements and cli tests are now also enabled. bitcoind_mock is got from PyPi now instead of github.
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "pisa/requirements.txt" }}
|
- v1-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}
|
||||||
# fallback to using the latest cache if no exact match is found
|
# fallback to using the latest cache if no exact match is found
|
||||||
- v1-dependencies-
|
- v1-dependencies-
|
||||||
|
|
||||||
@@ -33,22 +33,12 @@ jobs:
|
|||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -r pisa/requirements.txt
|
pip install -r pisa/requirements.txt
|
||||||
|
pip install -r pisa/requirements-dev.txt
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ./venv
|
- ./venv
|
||||||
key: v1-dependencies-{{ checksum "pisa/requirements.txt" }}
|
key: v1-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}
|
||||||
|
|
||||||
# Get github dependencies (pending to add to PyPi)
|
|
||||||
- run:
|
|
||||||
name: get bitcoind mock
|
|
||||||
command: |
|
|
||||||
git clone git@github.com:sr-gi/bitcoind_mock.git
|
|
||||||
. venv/bin/activate
|
|
||||||
pip install -r bitcoind_mock/requirements.txt
|
|
||||||
cp bitcoind_mock/bitcoind_mock/sample_conf.py bitcoind_mock/bitcoind_mock/conf.py
|
|
||||||
mv bitcoind_mock/bitcoind_mock ~/repo/venv/lib/python3.6/site-packages
|
|
||||||
|
|
||||||
|
|
||||||
# run tests!
|
# run tests!
|
||||||
# this example uses Django's built-in test-runner
|
# this example uses Django's built-in test-runner
|
||||||
@@ -71,11 +61,11 @@ jobs:
|
|||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest test/common/unit
|
pytest test/common/unit
|
||||||
|
|
||||||
# - run:
|
- run:
|
||||||
# name: run cli unit tests
|
name: run cli unit tests
|
||||||
# command: |
|
command: |
|
||||||
# . venv/bin/activate
|
. venv/bin/activate
|
||||||
# pytest test/apps/cli/unit
|
pytest test/apps/cli/unit
|
||||||
|
|
||||||
# - store_artifacts:
|
# - store_artifacts:
|
||||||
# path: test-reports
|
# path: test-reports
|
||||||
|
|||||||
Reference in New Issue
Block a user