mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
Adds pisa setup and e2e test run to circle-ci
This commit is contained in:
@@ -52,7 +52,7 @@ jobs:
|
|||||||
name: Build bitcoin_sandbox
|
name: Build bitcoin_sandbox
|
||||||
command: |
|
command: |
|
||||||
cp test/pisa/e2e/bitcoin.conf bitcoin_sandbox/
|
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
|
cp bitcoin_sandbox/docker/Dockerfile_ubuntu_no_ln bitcoin_sandbox/Dockerfile
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
cd bitcoin_sandbox && python -m bitcoin_sandbox.run_scenarios
|
cd bitcoin_sandbox && python -m bitcoin_sandbox.run_scenarios
|
||||||
@@ -81,6 +81,25 @@ jobs:
|
|||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest test/apps/cli/unit
|
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:
|
# - store_artifacts:
|
||||||
# path: test-reports
|
# path: test-reports
|
||||||
# destination: test-reports
|
# destination: test-reports
|
||||||
|
|||||||
Reference in New Issue
Block a user