mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-23 07:24:30 +01:00
Changes ports for bitcoind e2e and runs it earlier to give it time to boostrap
This commit is contained in:
@@ -41,6 +41,14 @@ jobs:
|
|||||||
- /snap
|
- /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 "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/pisa/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/
|
||||||
|
/snap/bin/bitcoin-core.daemon
|
||||||
|
|
||||||
# Run unit tests
|
# Run unit tests
|
||||||
- run:
|
- run:
|
||||||
name: Creates config files
|
name: Creates config files
|
||||||
@@ -66,14 +74,6 @@ jobs:
|
|||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest test/apps/cli/unit
|
pytest test/apps/cli/unit
|
||||||
|
|
||||||
# Run bitcoind for E2E testing
|
|
||||||
- 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/
|
|
||||||
/snap/bin/bitcoin-core.daemon
|
|
||||||
|
|
||||||
# Setup pisa for E2E testing
|
# Setup pisa for E2E testing
|
||||||
- run:
|
- run:
|
||||||
name: Setup pisa
|
name: Setup pisa
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ rpcallowip=0.0.0.0/0
|
|||||||
rpcservertimeout=300
|
rpcservertimeout=300
|
||||||
|
|
||||||
# [zmq]
|
# [zmq]
|
||||||
zmqpubhashblock=tcp://0.0.0.0:28332
|
zmqpubhashblock=tcp://0.0.0.0:28335
|
||||||
zmqpubrawblock=tcp://0.0.0.0:28332
|
zmqpubrawblock=tcp://0.0.0.0:28335
|
||||||
zmqpubrawtx=tcp://0.0.0.0:28333
|
zmqpubrawtx=tcp://0.0.0.0:28336
|
||||||
|
|
||||||
# [blockchain]
|
# [blockchain]
|
||||||
txindex=1
|
txindex=1
|
||||||
@@ -25,4 +25,4 @@ txindex=1
|
|||||||
# There are some parameters that only work in the specific on regtest if specified in the regtest section
|
# There are some parameters that only work in the specific on regtest if specified in the regtest section
|
||||||
[regtest]
|
[regtest]
|
||||||
rpcbind=0.0.0.0
|
rpcbind=0.0.0.0
|
||||||
rpcport=18443
|
rpcport=18445
|
||||||
@@ -2,13 +2,13 @@
|
|||||||
BTC_RPC_USER = "user"
|
BTC_RPC_USER = "user"
|
||||||
BTC_RPC_PASSWD = "passwd"
|
BTC_RPC_PASSWD = "passwd"
|
||||||
BTC_RPC_HOST = "localhost"
|
BTC_RPC_HOST = "localhost"
|
||||||
BTC_RPC_PORT = 18443
|
BTC_RPC_PORT = 18445
|
||||||
BTC_NETWORK = "regtest"
|
BTC_NETWORK = "regtest"
|
||||||
|
|
||||||
# ZMQ
|
# ZMQ
|
||||||
FEED_PROTOCOL = "tcp"
|
FEED_PROTOCOL = "tcp"
|
||||||
FEED_ADDR = "127.0.0.1"
|
FEED_ADDR = "127.0.0.1"
|
||||||
FEED_PORT = 28332
|
FEED_PORT = 28335
|
||||||
|
|
||||||
# PISA
|
# PISA
|
||||||
DATA_FOLDER = "~/.pisa_btc/"
|
DATA_FOLDER = "~/.pisa_btc/"
|
||||||
|
|||||||
Reference in New Issue
Block a user