Update missing readmes and circleci

- Some apps intances were not removed
- requeriment paths were wrong in circleci and some apps path needed to be removed
This commit is contained in:
Sergi Delgado Segura
2020-03-18 12:17:31 +01:00
parent 90ec15923e
commit 6d6fa9f728
5 changed files with 33 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "teos/requirements.txt" }}-{{ checksum "teos/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/teos/e2e/bitcoind_snap.sh" }}
- v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "cli/requirements.txt" }}-{{ checksum "test/teos/e2e/bitcoind_snap.sh" }}
- run:
name: Install dependencies
@@ -31,15 +31,15 @@ jobs:
python3 -m venv venv
. venv/bin/activate
sudo pip install --upgrade pip
pip install -r teos/requirements.txt
pip install -r teos/requirements-dev.txt
pip install -r apps/cli/requirements-dev.txt
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -r cli/requirements.txt
- save_cache:
paths:
- ./venv
- /snap
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" }}
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "cli/requirements.txt" }}-{{ checksum "test/teos/e2e/bitcoind_snap.sh" }}
# Run bitcoind for E2E testing (running it early so it has time to bootstrap)
- run:
@@ -54,7 +54,7 @@ jobs:
name: Creates config files
command: |
cp teos/sample_conf.py teos/conf.py
cp apps/cli/sample_conf.py apps/cli/conf.py
cp cli/sample_conf.py cli/conf.py
- run:
name: Run teos unit tests
@@ -72,7 +72,7 @@ jobs:
name: Run cli unit tests
command: |
. venv/bin/activate
pytest test/apps/cli/unit
pytest test/cli/unit
# Setup teos for E2E testing
- run:
@@ -80,8 +80,8 @@ jobs:
command: |
. venv/bin/activate
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_cli/
python3 -m generate_keys -d ~/.teos/
python3 -m generate_keys -n cli -d ~/.teos_cli/
cp ~/.teos/teos_pk.der ~/.teos_cli/