mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-11 09:34:22 +01:00
pisa -> teos
This commit is contained in:
@@ -21,46 +21,46 @@ jobs:
|
||||
# Download and cache dependencies
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/pisa/e2e/bitcoind_snap.sh" }}
|
||||
- v1-dependencies-{{ checksum "teos/requirements.txt" }}-{{ checksum "teos/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/teos/e2e/bitcoind_snap.sh" }}
|
||||
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: |
|
||||
sudo snap install `cat test/pisa/e2e/bitcoind_snap.sh`
|
||||
sudo snap install `cat test/teos/e2e/bitcoind_snap.sh`
|
||||
pyenv local 3.7.0
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
sudo pip install --upgrade pip
|
||||
pip install -r pisa/requirements.txt
|
||||
pip install -r pisa/requirements-dev.txt
|
||||
pip install -r teos/requirements.txt
|
||||
pip install -r teos/requirements-dev.txt
|
||||
pip install -r apps/cli/requirements-dev.txt
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- ./venv
|
||||
- /snap
|
||||
key: v1-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/pisa/e2e/bitcoind_snap.sh" }}
|
||||
key: v1-dependencies-{{ checksum "teos/requirements.txt" }}-{{ checksum "teos/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/teos/e2e/bitcoind_snap.sh" }}
|
||||
|
||||
# Run bitcoind for E2E testing (running it early so it has time to bootstrap)
|
||||
- run:
|
||||
name: Run bitcoind
|
||||
command: |
|
||||
mkdir -p /home/circleci/snap/bitcoin-core/common/.bitcoin/
|
||||
cp test/pisa/e2e/bitcoin.conf /home/circleci/snap/bitcoin-core/common/.bitcoin/
|
||||
cp test/teos/e2e/bitcoin.conf /home/circleci/snap/bitcoin-core/common/.bitcoin/
|
||||
/snap/bin/bitcoin-core.daemon
|
||||
|
||||
# Run unit tests
|
||||
- run:
|
||||
name: Creates config files
|
||||
command: |
|
||||
cp pisa/sample_conf.py pisa/conf.py
|
||||
cp teos/sample_conf.py teos/conf.py
|
||||
cp apps/cli/sample_conf.py apps/cli/conf.py
|
||||
|
||||
- run:
|
||||
name: Run pisa unit tests
|
||||
name: Run teos unit tests
|
||||
command: |
|
||||
. venv/bin/activate
|
||||
pytest test/pisa/unit/
|
||||
pytest test/teos/unit/
|
||||
|
||||
- run:
|
||||
name: Run common unit tests
|
||||
@@ -74,14 +74,14 @@ jobs:
|
||||
. venv/bin/activate
|
||||
pytest test/apps/cli/unit
|
||||
|
||||
# Setup pisa for E2E testing
|
||||
# Setup teos for E2E testing
|
||||
- run:
|
||||
name: Setup pisa
|
||||
name: Setup teos
|
||||
command: |
|
||||
. venv/bin/activate
|
||||
cp test/pisa/e2e/pisa-conf.py pisa/conf.py
|
||||
python3 -m apps.generate_key -d ~/.pisa_btc/
|
||||
python3 -m apps.generate_key -n cli -d ~/.pisa_btc/
|
||||
cp test/teos/e2e/teos-conf.py teos/conf.py
|
||||
python3 -m apps.generate_key -d ~/.teos/
|
||||
python3 -m apps.generate_key -n cli -d ~/.teos/
|
||||
|
||||
|
||||
# Run E2E tests
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
name: Run e2e tests
|
||||
command: |
|
||||
. venv/bin/activate
|
||||
pytest test/pisa/e2e/
|
||||
pytest test/teos/e2e/
|
||||
|
||||
# - store_artifacts:
|
||||
# path: test-reports
|
||||
|
||||
Reference in New Issue
Block a user