Adds pisa setup and e2e test run to circle-ci

This commit is contained in:
Sergi Delgado Segura
2020-01-20 16:28:20 +01:00
parent 18cd2a7499
commit ff4e7f2b67

View File

@@ -52,7 +52,7 @@ jobs:
name: Build bitcoin_sandbox
command: |
cp test/pisa/e2e/bitcoin.conf bitcoin_sandbox/
cp test/pisa/e2e/conf.py bitcoin_sandbox/bitcoin_sandbox/
cp test/pisa/e2e/sandbox-conf.py bitcoin_sandbox/bitcoin_sandbox/conf.py
cp bitcoin_sandbox/docker/Dockerfile_ubuntu_no_ln bitcoin_sandbox/Dockerfile
. venv/bin/activate
cd bitcoin_sandbox && python -m bitcoin_sandbox.run_scenarios
@@ -81,6 +81,25 @@ jobs:
. venv/bin/activate
pytest test/apps/cli/unit
# Setup pisa for E2E testing
- run:
name: Setup pisa
command: |
. venv/bin/activate
cp test/pisa/e2e/pisa-conf.py pisa/conf.py
cd apps/
python3 -m generate_key
python3 -m generate_key -n cli
# Run E2E tests
- run:
name: Run e2e tests
command: |
. venv/bin/activate
python3 -m pisa.pisad &
pytest test/pisa/e2e/
# - store_artifacts:
# path: test-reports
# destination: test-reports